• Resolved Jacob

    (@aspkin)


    First off thank you for such a great plugin. I’m still playing with it now but from the looks of it, it looks like a winner.

    I have the Falcon Cache enabled and it’s caching posts and pages of content but the cache is short lived. It will delete cached pages often.. it seems it only holds a page in cache for 30 minutes to an hour until it’s removed.

    I’m not sure what the deal is as I’m not making any changes to the blog or even logged in while it’s deleted cache. I’d really like cache to last long then a few minutes.. what can I do to make it where cache isn’t being cleared all the time?

    https://www.ads-software.com/plugins/wordfence/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi,

    If you aren’t doing anything to make the cache update, then only a comment posted would normally cause a refresh. A comment will clear the whole cache.

    https://docs.wordfence.com/en/Falcon_Cache#Events_that_cause_the_Falcon_Cache_to_auto-clear

    Are you using Falcon cache stats to determine how long the pages are being cached?

    https://docs.wordfence.com/en/Falcon_Cache#Get_Cache_Stats

    -Brian

    Thread Starter Jacob

    (@aspkin)

    ** Wow, I’m checking cached pages via FTP. I refreshed the folder and see about a dozen pages cached. After checking what was cached I go to login to the blog and check the status you mentioned: It says “The cache is currently empty. It may be disabled or it may have been recently cleared.”

    I go back to FTP and fresh the folder and it’s Empty..

    It seems me logging in caused the cache to clear.. but why is that?

    I did have two comments earlier in the day and that did seem to clear cache now that I think about it but overall that’s a lot of cache clearing..

    I suspect me logging in shouldn’t cause the cache to clear?

    Thread Starter Jacob

    (@aspkin)

    From what I’ve seen cache does not last longer then a few minutes… I guess maybe I have a plugin that’s causing this to happen?

    I’m going to guess it has something to do with either of these plugins: iThemes Security, WordPress Simple Firewall, Yoast SEO or WordPress.com Stats. I’m sure these plugins update with information which may cause a cache dump..

    In any case.. how do I disable this from happening other then removing other plugins? Maybe there is a line of code I can add that will prevent plugins from acting on the cache?

    Thank you,

    Thread Starter Jacob

    (@aspkin)

    Or more importanlty.. how do I prevent cache from being cleared automatically?

    HI,

    Thanks for the follow-up information! If you suspect another plugin is the issue, the best route to test is to disable all plugins and reenable one at a time to determine which one is causing the interference. Currently, the way to avoid the cache being cleared is to avoid one of the events listed in the documentation. Those rules make sure that you are serving up current cached content to your visitors.

    -Brian

    Thread Starter Jacob

    (@aspkin)

    Thanks Brian, I’m not sure what the cause is but I’ll figure it out eventually through lots of trial and error I suppose.

    I have a feeling hosting the DB on a 3rd party server might be causing the issue as well but I’ll have to test for that.

    If you can disable those plug-ins for a 30 minute period, then you could see if that makes any difference. That’s where I’d start.

    A big benefit of Falcon is that it gives your site the ability to handle a lot more traffic in a short period of time. This is beneficial against DoS attacks. Even if you’re cache is emptying every hour, you’ll still see the benefit if/when an attack happens.

    Thread Starter Jacob

    (@aspkin)

    Thanks Brian, I’ll report back what worked. ??

    Thread Starter Jacob

    (@aspkin)

    Well grr!

    I disabled ALL plugins, no luck. Every 15 minutes on the dot the entire cache is deleted. No matter what I have changed in wfcache.php, nothing helps. I even modified ‘wp_schedule_single_event(time() – 15,’ to 9999 and no dice.. cache continues to be cleared every 15 minutes.

    I don’t care if I have to manually clear cache every 6 months when I add new content.. I just want to PLEASE DISABLE CLEARING CACHE EVERY 15 MINUTES.. how can I do that. I’ll happily purchase your premiere we I can figure this out.

    Sounds like a cron job is running every 15 minutes triggering an event that empties the cache. Do you have any cron jobs setup on your server? Server cron jobs run at a set time interval. WordPress also has cron jobs but they rely on a visitor triggering it, so the job wouldn’t run exactly every 15 minutes.

    -Brian

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Falcon Cache Troubles’ is closed to new replies.