-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yoast updates delete opcache for non-Yoast and non-WordPress PHP files #20654
Comments
Hey @csurtyoung, Thank you so much for creating this issue. |
Thanks, Jeroen. I'll stay tuned and definitely appreciate that you and your team are receptive to this suggestion. |
Reopening the issue since the solution was reverted in 21.9.1 |
the opcache resetting for each subsite in a large multisite corrupts the cache. Variable letters start shifting, mostly in the require functions in wp-settings.php, which leads to white screen errors. Resetting the entire cache is a bit greedy. please stahp |
[x] I've read and understood the contribution guidelines.
[x] I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened
In wp-seo-main.php, function wpseo_init() contains the following code:
Especially in complex environments with many sites running Yoast and other PHP applications present, dumping cache for the entire server repeatedly is harmful and poor practice. We have tracked an intermittent server stability issue to Yoast updates.
Please consider replacing the opcache_reset() call with opcache_invalidate() applied to the plugin files only. If this is not possible, please consider adding an advanced configuration option that disables the opcache_reset() call.
Previous discussion of this issue is present in #9315. The issue was closed without being resolved at that time (2018) despite complaint from several users.
Further information can be viewed in Wordpress.org support thread (https://wordpress.org/support/topic/yoast-updates-delete-opcache-for-non-yoast-and-non-wp-php-files/)
To Reproduce
Step-by-step reproduction instructions
Expected results
Actual results
Technical info
Used versions
The text was updated successfully, but these errors were encountered: