• We are having issues with the cache not clearing on our site. Wp-cron.php is not clearing our cache.

    Due to some issues we were having, we added the following to our wp-config file:
    define(‘DISABLE_WP_CRON’, ‘true’);

    Then we had our web hosting company set our cache clearing to every 5 minutes. They have confirmed as of yesterday that it is running every 5 minutes, but something is not triggering the cache clearing.

    From what we can tell, something is not running type cleanup. AJAX uses nonce numbers stored in the cache system, but purging out of the cache is taking too long, causing our system to believe that something is wrong.

    We are using Visual Composer with our WordPress, and the post grids are the issue. They use nonces that expire every 12 hours. We tried to set the JS expire time to 6 hours, but that doesn’t seem to help.

    We need to be able to run a cron event from Total Cache. How do we tell Total Cache to purge/expire data in less than 12 hours?

    Thank you.

Viewing 1 replies (of 1 total)
  • Ben

    (@benbornschein)

    The reason why wp-cron.php is not triggered is because nearly every caching plugin start their work at an early stage and stop other WordPress processes to increase the performance. So only when a non-cached page is requested, the chances are high that WordPress runs a wp-cron.php request.

    You should use a cron-service or ask your hosting company, to run wp-cron.php every 5 minutes.

    If you really need your cache to be cleared as soon as the lifetime of the page is over, you should use a caching plugin with an external cache preloader, like my caching plugin (borlabs cache) or wp-rocket.

    • This reply was modified 7 years, 8 months ago by Ben.
Viewing 1 replies (of 1 total)
  • The topic ‘W3 Total Cache issue with cache not clearing’ is closed to new replies.