Title: Cache keeps getting deleted
Last modified: January 3, 2018

---

# Cache keeps getting deleted

 *  [jeff2013](https://wordpress.org/support/users/jeff2013/)
 * (@jeff2013)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/)
 * expire cache set to 0 ..but cache keeps getting deleted. Not sure why, I want
   it set to never expire.

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/cache-keeps-getting-deleted/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cache-keeps-getting-deleted/page/2/?output_format=md)

 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9833281)
 * Is it being deleted after you update a page or a post? You can change the clear
   cache option on the sidebar to “Page Specific” instead of “Completely”.
 *  Thread Starter [jeff2013](https://wordpress.org/support/users/jeff2013/)
 * (@jeff2013)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9834503)
 * I have all that set right.But I found this error
    PHP Warning: unlink(/home/XXXXXXX/
   public_html/wp-content/cache/cache-enabler/flooringhardwood.com/shop/waterproof-
   luxury-vinyl-flooring/evoke-vcc-bette/index.html.gz): No such file or directory
   in /home/XXXXXX/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.
   class.php on line 371, referer: [http://flooringhardwood.com/?ao_speedup_cachebuster=14580](http://flooringhardwood.com/?ao_speedup_cachebuster=14580)
 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9834855)
 * Where does that error appear? Have you been able to determine whether the cache
   gets deleted after a certain time period (e.g. every X hours)?
 *  Thread Starter [jeff2013](https://wordpress.org/support/users/jeff2013/)
 * (@jeff2013)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9835101)
 * that was error log Apache. No time frame will stay 3 hours or go in 30 mins.
   
   I have tried to set to 200 hours and 0 for no expire either way the same. hmmm
   I will keep looking
 *  Thread Starter [jeff2013](https://wordpress.org/support/users/jeff2013/)
 * (@jeff2013)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9835398)
 * it seems to be when a post is updated it deletes all cache
 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9836838)
 * And just to double check, you’ve defined the Cache Enabler option in the sidebar
   of your post to clear cache based on “Page Specific” instead of “Completely”?
 *  Thread Starter [jeff2013](https://wordpress.org/support/users/jeff2013/)
 * (@jeff2013)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9837040)
 * yes I have
 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9837516)
 * Please contact us directly here: [https://www.keycdn.com/contacts](https://www.keycdn.com/contacts)
   with temporary login credentials so we can take a closer look.
 *  Thread Starter [jeff2013](https://wordpress.org/support/users/jeff2013/)
 * (@jeff2013)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9844695)
 * OK I figured it out when we change woo-commerce categories, we are updating SEO
   on those pages then it deletes all the cache.We are just just updating the pages.
 *  Anonymous User 14978628
 * (@anonymized-14978628)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9866832)
 * I also have this issue. When a new post is published it clears my entire cache,
   even though i’ve set it not to do this.
 * I’ve determined the cause is due to some conflict with the following plugins 
   being active together:
 * a) Autoptimize
    b) Monarch Sharing Plugin Extra Theme (Elegant Themes)
 * Having plugins A or B active on their own doesn’t cause the issue.
 *  Thread Starter [jeff2013](https://wordpress.org/support/users/jeff2013/)
 * (@jeff2013)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9886769)
 * I deleted Autoptimize and no longer have the problem.
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9886912)
 * > I’ve determined the cause is due to some conflict with the following plugins
   > being active together:
   >  a) Autoptimize b) Monarch Sharing Plugin
 * Guess Monarch for some reason clears Autoptimize’s cache (there’s no automatic
   cache purging in AO), in which case CE’s cache is cleared as well (to avoid having
   HTML in page cache which refers to autoptimized CSS/ JS that isn’t there any 
   more). Question would be why Monarch would be doing that …
 * frank (ao dev)
 *  Anonymous User 14978628
 * (@anonymized-14978628)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9889626)
 * The issue also occurs when using Social Pug ([https://wordpress.org/plugins/social-pug/](https://wordpress.org/plugins/social-pug/))
   and AO. Either alone and there is no issue. Used together and CE’s cache is cleared
   when publishing new post.
 * I noticed the cache clearing issue also occurred with other caching plugins, 
   such as Litespeed Cache, so the problem doesn’t seem to be unique to CE.
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9890417)
 * CE will automatically clear it’s cache when AO’s cache is purged (as will some
   other page cache plugins), so the question is what triggers AO’s cache purging.
   i’ve installed Social Pug and can’t replicate, but that might be due to config
   or the fact I’m not on the “pro” version. based on a quick glance at the code
   I don’t see any interaction with AO or with the wp-content/cache-directory either.
 * @martychc23; If i’m not mistaking you created a support question for “social 
   pug”, any feedback there? and are you using the free or the pro version?
 * [@codyarsenault](https://wordpress.org/support/users/codyarsenault/); social 
   pug stores the share count in post_meta (using `update_post_meta`), could that
   trigger a CE cache purge? or does CE only look at actual posts & comments?
 *  Anonymous User 14978628
 * (@anonymized-14978628)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/#post-9892955)
 * Testing again with Social Pug (free) it behaves slightly differently to Monarch.
   It clears CE cache when a post is deleted. Monarch clears CE cache when a post
   is published. Can i send you the Monarch plugin?

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/cache-keeps-getting-deleted/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cache-keeps-getting-deleted/page/2/?output_format=md)

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

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

 * 20 replies
 * 4 participants
 * Last reply from: Anonymous User 14978628
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/cache-keeps-getting-deleted/page/2/#post-9923093)
 * Status: not resolved