Title: Not clearing cache automatically
Last modified: August 22, 2016

---

# Not clearing cache automatically

 *  [formulaclick](https://wordpress.org/support/users/formulaclick/)
 * (@formulaclick)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/not-clearing-cache-automatically/)
 * Hi,
 * I have Falcon caché enabled. All works fine except than cache is not cleared 
   when I do any of the actions mentioned:
 * “Note that the cache is automatically cleared when administrators make any site
   updates. Some of the actions that will automatically clear the cache are:
    Publishing
   a post, creating a new page, updating general settings, creating a new category,
   updating menus, updating widgets and installing a new plugin.”
 * If I click “clear the cache” it works but that is not the goal.
 * I’m using last version, 5.1.9
 * Any idea?
 * Thank you
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Scott Dayman](https://wordpress.org/support/users/sdayman/)
 * (@sdayman)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/not-clearing-cache-automatically/#post-5208730)
 * What action are you performing that you think should clear the cache? I recently
   got bit by publishing a post in the future. Yes, there’s an option in WordFence
   to clear the cache when that happens, but I forgot about it.
 *  Thread Starter [formulaclick](https://wordpress.org/support/users/formulaclick/)
 * (@formulaclick)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/not-clearing-cache-automatically/#post-5208741)
 * I’ve tried everything. Update a post, create a page, update a widget…
    Those 
   actions should clear the cache automatically, but it doesn’t happen…
 *  Plugin Author [Mark Maunder](https://wordpress.org/support/users/mmaunder/)
 * (@mmaunder)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/not-clearing-cache-automatically/#post-5208754)
 * When we clear the cache, the way we do it is to schedule an event in WP to run
   immediately, then we hit the /wp-admin/admin-ajax.php URL so that the scheduled
   event will run.
 * So if you’re seeing this it’s possible that the request where the server connects
   back to itself does not execute as it should, even though the cache clearing 
   has been scheduled.
 * When you manually clear the cache, we don’t use the scheduling mechanism, but
   clear the cache while you wait, that way we can return the real-time stats to
   you that you see in the result.
 * So do the following test: Do whatever action you expect will clear the cache.
   Then hit your site’s home page in a browser. Then wait a minute. Then check if
   the cache was cleared.
 * Hitting your home page will also trigger the scheduled clearing of the cache 
   that should be triggered by your server connecting to itself.
 * Hope that helps – just trying to give you an internal view of what we’re doing
   in the hope of helping you diagnose the issue.
 * Regards,
 * Mark.
 *  Thread Starter [formulaclick](https://wordpress.org/support/users/formulaclick/)
 * (@formulaclick)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/not-clearing-cache-automatically/#post-5208759)
 * Thank you for your answer. Finally I got it working.
    I had `define('DISABLE_WP_CRON',
   true)` and a server crontab executing the cron every 30 minutes to reduce the
   server load. I don’t know why but the cache is not cleared even if I wait more
   than those 30 minutes. Then I set `define('DISABLE_WP_CRON', false)` and worked.
   Any idea about this behavior?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Not clearing cache automatically’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [formulaclick](https://wordpress.org/support/users/formulaclick/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/not-clearing-cache-automatically/#post-5208759)
 * Status: not resolved