You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love to address this, but time is an issue, and I'm still mediocre at programming at best. So I'd have to take some time to figure out how best to implement the change.
xknown
added a commit
to xknown/doctor-command
that referenced
this issue
Nov 16, 2023
We currently scan all the PHP files in the target WP content dir looking
for `wp_cache_flush()` uses, however we are not currently using the
results in a meaninful way so we can just probably return early if the
current check found a match.
If there are plans to list the matched files, we can probably attempt to
use some more performan alternatives (grep if available for example)
which should be likely faster than a PHP based implementation.
See wp-cli#178
Bug Report
Describe the current, buggy behavior
The check "cache-flush" has issues when the wp-content folder has many files, the site that was affected had 40,000 files in the wp-content directory.
Describe how other contributors can replicate this bug
Run
wp doctor check cache-flush
Describe what you would expect as the correct outcome
Only scan .php or rebuild the function so that it doesn't exceed memory limits.
Let us know what environment you are running this on
The text was updated successfully, but these errors were encountered: