• Resolved edvardspektar

    (@edvardspektar)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wpmansour

    (@wpmansour)

    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

    (@edvardspektar)

    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

    (@edvardspektar)

    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.

    Plugin Support wpmansour

    (@wpmansour)

    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)
  • You must be logged in to reply to this topic.