• Resolved lira123

    (@lira123)


    Hi! I have this problem with all my sites since last update and it is that half the cached pages disappears after a couple of hours. Lets say the normal current cache size is 30 MB, now when I check that number after a couple of hours its down to around 15 MB and I have to preload the cache again manually for the missing pages. Its like the plugin loses half the cache out of nowhere.

    I have not seen this before, any idea of what could cause this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support vupdraft

    (@vupdraft)

    What is your cache lifespan set to?

    Did you publish or update URLs, such as posts/pages/custom post types including any other content related to it (i.e. home, category, tag, etc.)

    Do you have minify enabled?

    Thread Starter lira123

    (@lira123)

    Between 30-45 days depending on the site.

    No, I have not updating anything on the sites when this occurs. Two of the sites with this problem is not updated since june.

    Minify is enabled on one site, not the others. But the problem occurs on all sites.

    Plugin Support vupdraft

    (@vupdraft)

    The cache is automatically purged after these actions: https://snipboard.io/ebhr62.jpg

    So, cache may be purged if any of the following happen, you change theme, you update your mens, you update any widgets, upgrade themes/plugin/core/, you add a WPML string translation etc.  It is likely one of the events in the screenshot occurred and cache was purged.

    Thread Starter lira123

    (@lira123)

    Thanks for the reply, but thats not the problem. I’ve used WP Optimize for 2 years so I know that certain actions purges the cache. This is something else, all my sites gets their cache purges every 24 hours now, even though the cache time is 30 days and the site is untouched.

    Its like the cache time is overruled and set to 1 day.

    Plugin Support vupdraft

    (@vupdraft)

    Can you install the free pluginWP Control’ plugin and then wait for 24 hours to see if the issue occurs again. If possible could you avoid making any changes to the site, such as activating or deactivating any plugins, updating plugin settings, and so on. After 24 hours, if the issue reoccurs, can you take a screenshot of your cron events.

    It would be really useful if you could all do this as we might be able to see if there is a common event that happens on all of your sites that may be triggering a purge/preload

    Thread Starter lira123

    (@lira123)

    Absolutely, will do that!

    Thread Starter lira123

    (@lira123)

    @vupdraft I found whats causing the purge, its something called:

    Name: wpo_reset_webp_conversion_test_result

    Action: WPO_WebP_Cron_Scheduler->reset_webp_conversion_flags()

    This is a daily action that happened at the same time the purge happened. I also double checked it with a manual activation within the WP Crontol plugin and it indeed purged the cache.

    So its looks like its something from the WP-Optimize plugin. What does this do and is it possible to turn it off?

    Plugin Support vupdraft

    (@vupdraft)

    Hi,

    The cron event is for resetting the WebP conversion method so as a workaround you could try switching off the option to create WebP images in the Images tab. I will pass your findings onto our development so that we can look at providing a permanent fix.

    I observe the same – wpo_reset_webp_conversion_test_result cron event is scheduled to be run on a daily basis and, indeed, it clears page cache…

    Unfortunately this event is sticky and does not disappear regardless of “create WebP images” option setting (at least in my case).

    I understand that WP-Optimize development team will be working on the potential permanent fix, but is it possible to have some simple code snippet to deal with the issue of undesired cache clearing meanwhile ?

    • This reply was modified 1 year, 2 months ago by eugene212.

    Hi,

    We have exactly the same problem occurring on our sites on Windows webserver.

    Plugin Support vupdraft

    (@vupdraft)

    Hi,

    I think I have just replied to you in your other thread. Thank you for the report, we are currently investigations this.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Cache disappears’ is closed to new replies.