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?
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.
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.
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.
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
Absolutely, will do that!
@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?
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 2 years, 8 months ago by
eugene212.
Hi,
We have exactly the same problem occurring on our sites on Windows webserver.
Hi,
I think I have just replied to you in your other thread. Thank you for the report, we are currently investigations this.