• Resolved chun0914

    (@chun0914)


    Hi,

    I’ve noticed that the cache is being automatically cleared. For instance, when I visit a page for the first time, it generates the cache file as expected. However, after a few hours, when I revisit the same page, the cache file is removed, and a new one is automatically generated when I enter the page again. I’d like the page to only refresh when it has been modified. Could you please provide guidance on how to set this up?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @chun0914

    Thank you for reaching out and I am happy to assist you with this.

    In some cases, some plugins or themes may use the W3 Total Cache filter to purge the cache once something is updated. The W3 Total Cache purges the post cache once the post is updated or a new post is created, and this behavior is managed by the Purge policy in Performace>Page Cache.

    This means that something is calling w3tc_flush_all(), and you can check this in the purge log which can be activated in Performance>General settings>Debug>Purge Logs:

    I hope this helps!

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Cache deleted automatically’ is closed to new replies.