• Resolved stevejonk

    (@stevejonk)


    Hi,

    I really like your plugin and I use it on almost all the sites I build, but I keep running into a seemingly weird issue. I’ve been fiddling around with different configurations for weeks now and the issue just keeps on popping up.

    The issue
    The page cache seems to be emptied every day, or it seems to be emptied when I regenerate cache stats on the contents tab

    Config
    I set the following configuration:

    • Pre load on
    • Preload every 120 minutes
    • Cache time-out 86400 seconds (one day)
    • Garbage collection 86400 (one day)

    I also tried setting time-out and garbage collection extremely high (31 556 926 seconds), but the contents tab still got emptied every time I regenerate the cache stats.

    Goal
    The sites are very static, I try to just maintain the cache forever, until something changes on a page.

    What am I doing wrong here?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @stevejonk

    Regenerating cache stats can result in the cache being emptied because this process is typically associated with cleaning up and re-evaluating the current state of the cached content. When you regenerate cache stats, you may be inadvertently triggering the cache system to clear out old or stale data to ensure that the statistics provided are accurate and represent the latest state of the cache.

    The “Preload Mode” setting is designed to prevent frequent cache clearing. When enabled, it should disable garbage collection of old cached files, but be mindful that even in this mode, when posts are modified or comments are added, the relevant cache files can still be purged.

    Thread Starter stevejonk

    (@stevejonk)

    Thank you very much!
    This clarified a lot.
    What also helped was something I read in another forum post, about the Yoast SEO plugin purging the cache.
    See this link:
    https://github.com/Yoast/wordpress-seo/issues/20554

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Glad to help, and thanks for the link!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cache is (unwanted) emptied every day’ is closed to new replies.