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
@lkraav Thanks for your feedback, I seem to have missed this Issue. You are certainly welcome to provide a code snippet suggestion here if possible, that might be easier than a PR.
That said, WordPress 5.3+ now indexes the autoload tables by default. So we no longer include this plugin in our SlickStack default plugins, as it's not really needed anymore.
Basically, you should only be registering uninstall hooks once, on plugin activation. Could also grep your plugins/ directory for probably tens more examples.
https://plugins.trac.wordpress.org/browser/index-autoload-littlebizzy/trunk/index-autoload.php#L103
This causes slow
update_option()
calls on every request for no reason.Please use https://github.com/johnbillion/query-monitor (define SAVEQUERIES true) to profile your performance better.
See docs for wrapping instructions https://developer.wordpress.org/reference/functions/register_uninstall_hook/
The text was updated successfully, but these errors were encountered: