Make cache size and expiry configurable via environment variables by Man7asP · Pull Request #5576 · wp-cli/wp-cli
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 1k
Merged
schlessera merged 1 commit intowp-cli:masterfrom
Nov 5, 2021Merged
Conversation
Copy link
Contributor
The WP-CLI file cache can now be configured via the following environment variables:
WP_CLI_CACHE_DIR- Directory in which to store the cached files. Default value:"$home/.wp-cli/cache".WP_CLI_CACHE_EXPIRY- Time after which cached files are automatically purged, in seconds. Default value:15552000(6 months).WP_CLI_CACHE_MAX_SIZE- Total size of the file cache after which older files are purged, in bytes. Default value:314572800(300MB).
Fixes #5574
Man7asP
requested a review
from a team
as a code owner
schlessera approved these changes Nov 4, 2021
schlessera
added
the
internal-api:wp-cli-file-cache
label
schlessera
added this to the
2.5.1 milestone
schlessera
merged commit
aa182a8
into
wp-cli:master
Copy link
Member
schlessera
commented
Nov 5, 2021
schlessera commented
Nov 5, 2021Thanks for the PR, @mn7zDev !
schlessera
changed the title
Cache: Changeable cache size.
Make cache size and expiry configurable via environment variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment