Title: Cache deleted automatically
Last modified: September 24, 2023

---

# Cache deleted automatically

 *  Resolved [chun0914](https://wordpress.org/support/users/chun0914/)
 * (@chun0914)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/cache-deleted-automatically/)
 * 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](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/cache-deleted-automatically/#post-17077040)
 * Hello [@chun0914](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/cache-deleted-automatically/#post-17077040)
 * Status: resolved