As Autoptimize does not purge it’s own cache, either the cache was cleared manually (by changing settings and clicking “save settings and clear cache”) or you have some other plugin/ script clearing wp-content/cache/autoptimize. clearing your page cache in such cases should fix such issues.
hope this helps,
frank
thanks for prompt reply. I have disable and removed this plugin: Autoclear Autoptimize Cache
Once again thanks for saving many lives
Hi @dapojaja
You can use this code instead:
/* Automatically clear Autoptimize Cache if it goes beyond 256MB */
if (class_exists('autoptimizeCache'))
{
$myMaxSize = 256000;
$statArr=autoptimizeCache::stats();
$cacheSize=round($statArr[1]/1024);
if ($cacheSize>$myMaxSize)
{
autoptimizeCache::clearall();
header("Refresh:0");
}
}
Shared here: https://ww.wp.xz.cn/support/topic/contribution-autoptimize-cache-size-under-control-by-schedule-auto-cache-purge/
Cheers 🙂
that would likely cause the same issues as the plugin dapojaja removed @kreativopro 😀
Oh ok @optimizingmatters So the best thing is to clear cache manually?
the best thing is to configure AO in such a way that the cache does not grow that quickly, more info in the AO FAQ 😉