disable wp-cron for page load
-
HI
I have a site that that gets a lot of hits.
The problem is that this site uses lots of server resources because wp-cron.php
runs every time that a page is loaded.I can disable wp-cron.php
and set up wp-cron to run in cpanel once a night and wp-cron does run once a night
but,
this stops wordpress plugins from automatically updating even though these plugins are set for automatic update.With wp-cron.php disabled and cron set to run nightly for the site-
Instead of these plugins updating – in the wordpress admin plugin section-
if a plugin needs updating-
right under where it says “Automatic Updates Enabled”
it says automatic updates are scheduled to run in a number of hours
and it also says that the plugin has not updated because there may be a problem with cron.
If I manually update the plugin – it works just fine.In addition, with wp-cron.php disabled and cron set to run nightly for the site- the wordfence plugin (free version) stops emailing me if a plugin needs updating or if it is abandoned, etc.
Is there a way to only disable wp-cron.php for every page load and still keep wp-cron.php working for plugin updates?
Thanks
Audrey
- The topic ‘disable wp-cron for page load’ is closed to new replies.