refresh/reload loop of version 2.4.0
-
Hi Guys
Found that this snippet that i use is the cause of the constant refresh/reload loop in version 2.4.0
Obviously I need this on the 20+ sites as every day the cache on some now climbs to over 2GB in a day now i cant use in 2.4.0
if (class_exists('autoptimizeCache')) { $myMaxSize = 256000; # You may change this value to lower like 100000 for 100MB if you have limited server space $statArr=autoptimizeCache::stats(); $cacheSize=round($statArr[1]/1024); if ($cacheSize>$myMaxSize){ autoptimizeCache::clearall(); header("Refresh:0"); # Refresh the page so that autoptimize can create new cache files and it does breaks the page after clearall. } }
Any ideas on what i need to change?
Cheers
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘refresh/reload loop of version 2.4.0’ is closed to new replies.