rahulpragma
Forum Replies Created
-
Forum: Plugins
In reply to: [Redis Object Cache] How to set AWS Redis Primary Endpoint & Reader Endpoint?Hi, any news on multiple endpoints including primary and readonly?
Hi Amir,
Sorry, I am not familiar with ao cache but if you are using “w3 Total Cache” or “wp supper cache” then following updated code will help you to flush the cache.
/*-------------------------------*/ /* # Automatically clear autoptimizeCache if it goes beyond 256MB /*-------------------------------*/ 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(); // Clear all W3 Total Cache if( class_exists('W3_Plugin_TotalCacheAdmin') ) { $plugin_totalcacheadmin = & w3_instance('W3_Plugin_TotalCacheAdmin'); $plugin_totalcacheadmin->flush_all(); # echo __('<div class="updated"><p>All <strong>W3 Total Cache</strong> caches successfully emptied.</p></div>'); } header("Refresh:0"); # Refresh the page so that autoptimize can create new cache files and it does break the page after clearall. } }
Forum: Plugins
In reply to: [Comet Cache] Cron Job to Clear CachePlease check this post for automatic/hassle-free cache purge mechanism.
Forum: Plugins
In reply to: [Autoptimize] resource limit is reachedPlease check this post for automatic/hassle-free cache purge mechanism.
Forum: Plugins
In reply to: [Autoptimize] Reaching full cache every couple of hoursPlease check this post for automatic/hassle-free cache purge mechanism.
Forum: Plugins
In reply to: [Autoptimize] How often should I delete the cache?Please check this post for automatic/hassle-free cache purge mechanism.
Forum: Plugins
In reply to: [Autoptimize] Cache Growing even with Bare Minimum Set Up?Please check this post for automatic/hassle-free cache purge mechanism.
Forum: Plugins
In reply to: [Autoptimize] Schedule cache purgeI have updated the code slightly and you may add this on the Top of functions.php
# Automatically clear autoptimizeCache if it goes beyond 256MB 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. } }
- This reply was modified 7 years, 9 months ago by rahulpragma.
- This reply was modified 7 years, 9 months ago by rahulpragma. Reason: Added Comments
- This reply was modified 7 years, 9 months ago by rahulpragma. Reason: Updated Code
Forum: Reviews
In reply to: [Wordpress Google Map Professional (Map In Your Language)] WorkingHello Mayasl,
Thank you for your feedback. We are working hard to improve its UI and functionality. New version will be coming soon with a lot of new features.