Title: plugin unable to cache
Last modified: October 3, 2024

---

# plugin unable to cache

 *  Resolved [edvardspektar](https://wordpress.org/support/users/edvardspektar/)
 * (@edvardspektar)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/plugin-unable-to-cache/)
 * Hello, wp optimize starting caching but ends very soon (after cca 50 files) and
   going in circle like that, caching, cache 0 files, caching again…. Is it due 
   to disk being nearly full, 92/100Gb or maybe something else? Web has 60Gb. Thanks
   in advance, regards.
    -  This topic was modified 1 year, 7 months ago by [edvardspektar](https://wordpress.org/support/users/edvardspektar/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [wpmansour](https://wordpress.org/support/users/wpmansour/)
 * (@wpmansour)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/plugin-unable-to-cache/#post-18052413)
 * WP-Optimize has a cache lifespan setting that determines how long cached pages
   are stored before being refreshed. If this lifespan is too short, the cache might
   be clearing out and starting over repeatedly, which could explain the looping
   behavior you’re seeing (caching 50 files, then the cache resets to 0).
 * Here’s what to do:
    1. Go to **WP-Optimize** > **Cache settings**.
    2. Adjust the **Cache lifespan** to a longer period (e.g., 24 hours or more).
    3. Make sure that the **Schedule preloader** is set to **Same as cache lifespan**.
       This ensures that the cache preloading process is in sync with the cache lifespan
       and doesn’t start clearing and rebuilding the cache prematurely.
 * This combination should help resolve the issue and allow the cache to build up
   and function properly.
 *  Thread Starter [edvardspektar](https://wordpress.org/support/users/edvardspektar/)
 * (@edvardspektar)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/plugin-unable-to-cache/#post-18053334)
 * Hello, lifespan is set to 23 hours and Schedule preloader is set to Same as cache
   lifespan but cache keeps reseting after 100-200 files cached. Everything was 
   working fine for years. Nothing new was done on the page, no new plugin. In log
   there are few lines saying “WPO_ADVANCED_CACHE constant is not present in advanced-
   cache.php” But just a few of that errors. 
   Because cache keeps starting, I can
   see products being cached inside “wp-content/cache/wpo-cache/” folder and then
   all of the sudden, everything is deleted and cache starts again. Can it be due
   to some server upgrade or wrong permissions or something hoster did with server?
   Or any other idea?Thanks in advance, regards.
 *  Thread Starter [edvardspektar](https://wordpress.org/support/users/edvardspektar/)
 * (@edvardspektar)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/plugin-unable-to-cache/#post-18053939)
 * Hello, I think we found out what it was about. The client did not say that he
   was changing the name of the product in another language that was added through
   WPML. He was also changing the URLs manually. When those changes were done, the
   cache built up normally. Does your plugin at that moment, saving the product 
   with changed url (most likely yes), starts to build a complete cache from the
   beginning? We think that every time client saved product with url changed, cache
   started to rebuild. And we did not know what was happening. We saw cache being
   rebulid but clearing after some time then again – loop.
 *  [wpmansour](https://wordpress.org/support/users/wpmansour/)
 * (@wpmansour)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/plugin-unable-to-cache/#post-18058564)
 * Yes, WP-Optimize is designed to clear and rebuild the cache when certain changes
   are made to your site, including URL or slug changes, particularly with multilingual
   plugins like WPML. When a product URL is modified, the cache is invalidated to
   ensure that the newly updated pages are correctly cached, which can sometimes
   trigger the behavior you described — the cache clearing and rebuilding from scratch.
 * It seems like the manual changes to product URLs were indeed the cause of the
   cache reset loop. I believe that now the URLs have stabilized, the caching should
   function normally without further interruptions. However, if the issue persists,
   please let us know, and we can assist you with further troubleshooting.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘plugin unable to cache’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [wpmansour](https://wordpress.org/support/users/wpmansour/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/plugin-unable-to-cache/#post-18058564)
 * Status: resolved