Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #75129
    Stephen Cicirelli
    Guest

    I have just updated my website to include my Twitter feed. This feed constantly changes, as I tweet. I have noticed, in the morning, that the feed is disappearing altogether. It is only when I “purge all caches” that the Twitter feed returns. Is there a way to automatically schedule a daily purge so that I don’t have to do so manually every morning? I would appreciate any help with this. Thanks,

    Stephen

    #75152
    Marko Vasiljevic
    Keymaster

    Hello Stephen,

    Thank you for reaching out and I am happy to assist you with this.
    Purging the W3 Total Cache – cache all the time is not recommended as it may cause a lot of server resource consumption, naturally, it depends on the website.
    There are a couple of things that you can do.
    1. Exclude the page where the feed is (in your case /news/) from the page caching by adding /news/ in Peformance>Page Cache>Advanced>Never Cache following pages field.
    2. Use Page Fragment Caching – You can check more details in our FAQ about this, but in short, you need to warp this part of the page with the mfunc, replacing the tags and excluding this part of the page from the cache.
    3. Setup a custom cron on your server and call w3tc_flush_url($url); every x minutes/hours.

    The last one is a programmatic solution that will only purge specific URL instead of pouring the cache for the entire website.

    I hope this helps!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Scheduled Purge’ is closed to new replies.