Selective interval cachine
-
how set this plugin in preload mode but not all straight and non-stop.
i need it in preload mode to cache one page then pauses for some adjustable minutes and then continue to cache next page, then pause etc..so need gap between caching of each page..
-
maybe you can cache data with ajax…
http://api.jquery.com/jquery.ajax/
http://gosukiwi.svbtle.com/the-right-way-of-caching-ajax-requests-with-jqueryI think you cache every pages and request along the time with ajax (jquery ajax), it will work…
you replace/add data (others pages) with that:
http://wptheming.com/2011/12/ajax-themes/thank , good idea. but in practice may u please write some codes.. what to
load where to load? and will it be automated?yes, it needs to be developed…
What do you really want to do? why normal cache dont work for you ?well it depends on many things, first of all preload caching is so well to speed up for users and also for bots.. problem is when preload starts for the duration of preloading ( half an hour more or less) web server’s cpu and memory is too busy with preloading and cant handle bots or visitors..
now consider super cache has option ‘Selective interval cache’:
let’s say I have 240 pages, then I’ll set the super cache to preload one page in every six minute! so in one hour 10 page will be preloaded without any stress on the server. in a 24 hours cycle all my page will be refreshed without any pressure on server to lose bots or users.. depending on different servers and web sites you my apply different cycles not just 24 hours etc..For Bots, I’ve help setup bot specific routing where bots see a slightly older cached page than normal users by inspecting the header and routing to different backends. We also use this extra cache as a failover if WP itself is down. http://blog.unixy.net/2015/03/load-balanced-bot-split-approach-to-counter-excessive-bot-traffic-when-search-engines-work-against-you/
This solution really works. Though it works for us with 1000+ sites, 1500+ domains, and million+ pages and posts across them all.
Given what you described though for 240 pages I’d say you’re probably just better off getting a little better server that can handle a little more load or looking at other performance bottlenecks.
Are you using Memcached Object caching to cache your database queries? If not, you should really look into setting up a persistent object cache backend which should speed things up for page generation times. https://ww.wp.xz.cn/plugins/memcached/
I’m not sure what I have to do here (see below)? When I went to the link and back to WP Super Cache plugin I couldn’t find the tab in the advanced settings they say to update!
WPtouch: WP Super Cache needs to be configured to work correctly with WPtouch.
Fixing this issue prevents cached desktop pages being served to mobile devices and vice-versa.
Once fixed, this message will be dismissed automatically. Until fixed, WPtouch will not be shown to mobile visitors, and cannot be previewed.
To fix the issue, follow our step-by-step setup guide on support.wptouch.comthanks , Object caching helped me for now.. still that’s interesting to me sure someone will add selective interval duration to his cache system, can u please give an idea of how to imitate loading a page? i mean not opening every page in my browser.. with that suggestion using ajax or something, i will do it with some codes but i don’t know “how to start the visiting the pages ” i mean actually if i visit every page in my browser it will be cached, ok. but how to virtually visit a page? not in browser..? if you know please help..
@musicshahram, glad to here object caching is helping you for now. Memcached objects typically don’t expire as quickly as static page caching does so I think you’ll probably be surprised at how well this will help your server / database performance for the long run.
For priming the cache, you may look at Optimus Cache Prime – https://patrickmn.com/projects/ocp/
Someone wrote a warm.php script – http://www.pixelenvision.com/1572/php-cache-warmer-preloader-for-w3-total-cache/
I’m also pretty sure that W3TC has a cache priming feature – https://ww.wp.xz.cn/plugins/w3-total-cache/
Best of luck!
The topic ‘Selective interval cachine’ is closed to new replies.