• Resolved mupa

    (@mupa)


    Hi,

    i have a widget with a RSS feed on my side which gets some updates a day. The problem is, the site itself is not often visited. That’s why i want to flush and rebuild the cache automatically every 2 or 3 hours, so that the RSS content is always up2date. Is there a solution for doing that (CRON job or something like that)?

    https://www.ads-software.com/plugins/cache-enabler/

Viewing 8 replies - 1 through 8 (of 8 total)
  • By default you can’t make pieces of page not cache. That is natively how caching in WordPress works. You are going to run into similiar issues with other caching plugins as well. One option would be to figure out a way to load your RSS widget via AJAX or Javascript (which has its own downfalls) but should fix your RSS widget updating. Hopefully that helps!

    Thread Starter mupa

    (@mupa)

    I don’t want to cache pieces. I want to flush and rebuild the whole cache of all sites cause the RSS feed is in a widget which is on all sites.

    Is there any cache plugin out there that can rebuild the cache automatically out of the box?
    Until now i only found this thread . But this script doesn’t work for me.

    Oh ok, that is a little different then. You could expire the cache on a regular basis with a CRON job. See more here: https://www.keycdn.com/support/wordpress-cache-enabler-plugin/

    Thread Starter mupa

    (@mupa)

    Expireing the cache is not the big deal, the questions is how to rebuild it?

    Unfortunately there isn’t a supported way at the moment to rebuild the cache pro-grammatically. However, I have added this to the road-map for Cache Enabler plugin to consider adding. Thanks!

    Plugin Author KeyCDN

    (@keycdn)

    I always recommend to let the cache build “naturally” as there might is too much load (i/o) on your server when all the pages get cached at once.

    Thread Starter mupa

    (@mupa)

    I have found a solution for this use case:
    If you have RSS content which needs to be updated frequently, then don’t let WordPress do the job. I now have created a RSS widget (there are tons of generators) and pasted it into the text widget from WordPress. The generated RSS widget has some javascript which does the update job itself. So now it doesn’t matter if the code is compressed or not.

    Great glad you got it resolved. Ya sometimes Javascript is the only solution to get around caching ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘automatic cache rebuild’ is closed to new replies.