• 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    (@formulaclick)

    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 Wordfence Security

    (@mmaunder)

    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

    (@formulaclick)

    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.