Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WFMattR

    (@wfmattr)

    There is currently no option to clear the Falcon cache automatically at certain times, but I will pass it along to the developers.

    I can’t promise that every suggestion we get will make it into a release, or when that might be, but every suggestion we get is evaluated carefully and considered seriously. We value the input we get from our customers. A member of our dev team may or may not reach out to you here to ask for more detail. Thank you for helping to make Wordfence great.

    We actually thought this over a while back but decided against it for some reason. I believe it had to do with not wanting the world to have access to clear your cache when you didn’t want it cleared.

    There is a workaround though. There are many actions that will clear your cache and it would be fairly easy* to create a script to call from a cron job.
    Here is an example:
    <?php
    include ‘wp-load.php’;
    wfCache::clearPageCache();
    ?>
    tim

    kojak711

    (@kojak711)

    I added this to my functions.php file which clears the WF cache whenever a post/page is saved/updated and it’s working perfectly. I have dynamic sections on the home page and on various sidebars (like most recent news lists, etc.) and I find this is the easiest way to force clear the cache so these can all update properly when the new post/page is added.

    <?php
    // clear Wordfence cache when post/page is added/updated
    function clear_wf_cache( $post_id ) {
    // If this is just a revision, don’t clear the cache
    if ( wp_is_post_revision( $post_id ) )
    return;

    wfCache::clearPageCache();
    }
    add_action( ‘save_post’, ‘clear_wf_cache’ );
    ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Falcon cache?’ is closed to new replies.