Cron jobs not working with Object cache enabled
-
W3TC is configured to only use Object Cache and Browser Cache.
We have object cache configured to use memcached with a default lifetime of
180and GC interval of3600. We do not cache WP Admin pages.We have
advanced-cache.phpandobject-cache.phpin thewp-contentdirectory.When using W3TC Object cache, this will eventually cause most cron jobs to stop running while constantly running the same cron 5 jobs on every cron event. I can duplicate this locally.
What can we do to prevent W3TC from caching the
cronoptions value? This seems to be the issue and I am still searching into the issue since I can duplicate this locally.From what I am seeing, this only runs the same cron jobs every time the cron runs. We have over 20 cron jobs that are a week overdue on production. These crons run at different time intervals. From every 5 mins to once a month. I am noticing the even my single event crons are not being ran either.
Cron is invoked using wp-cli to process the cron using: <br>
wp cron event run --due-nowWe even tried running cron from the URL (not ideal at all nor can we use this in production) and the exact same issue persist.
I have tried disabling object cache, purging the cache and running the cron manually (from the URL) but this doesn’t work either. I then tried to manually purge the cache directory (pointless really) but then it still doesn’t work. My only solution is to actually disable the plugin for cron to run again.
What are my options here? I am considering removing W3TC but that is a last resort and I would prefer to get this issue resolved.
Thanks
The topic ‘Cron jobs not working with Object cache enabled’ is closed to new replies.