Repository navigation
Say that 0 turns the cache limits off - #684
Conversation
Since WP-CLI 3.0.0, setting WP_CLI_CACHE_EXPIRY or WP_CLI_CACHE_MAX_SIZE to 0 turns that limit off instead of falling back to the default. Add that to both entries.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
Adds one sentence to the
WP_CLI_CACHE_EXPIRYandWP_CLI_CACHE_MAX_SIZEentries in the Config reference: since WP-CLI 3.0.0,0turns that limit off. This comes from wp-cli/wp-cli#6453. Before that change,0fell back to the default instead of turning the limit off.Changes
WP_CLI_CACHE_EXPIRY: adds "Since WP-CLI 3.0.0,0turns this limit off."WP_CLI_CACHE_MAX_SIZE: adds the same sentence.Verification
Read the limits
WP_CLI::get_cache()builds, with both variables unset, set to0and set to3600:03600mainat dc9df32With a limit of
0,FileCache::clean()skips removing expired files ($ttl > 0) and skips trimming to size ($max_size > 0).Ran
git diff --check.Use of AI
AI assistance: Yes
Tool(s): Claude Code and Codex
Used for: checking the limits on
mainand 2.12.0, drafting the change, and reviewing it. I reviewed the reasoning and test results, and I take responsibility for the contribution.Summary by CodeRabbit
0turns it off in WP-CLI 3.0.0 and later.