full page cache in render_skin
Hi
I notice the default cache time for page output is 60s, why not left to the default of 12 hours ?
Nick
I notice the default cache time for page output is 60s, why not left to the default of 12 hours ?
Nick
| Bernard from nearby-an-airport Associate, 6745 posts | Nick, where have you found the 60 seconds figure? |
NickR![]() from West Yorkshire, UK 332 posts |
Bernard: in shared/global.php, line 925 in 6.9. // cache full page content for one minute --we are aiming to save on spikes
if(is_callable(array('cache', 'put')) && is_callable('ob_get_contents'))
Cache::put($script_cache_id, ob_get_contents(), 'global', 60);
|
| Bernard from nearby-an-airport Associate, 6745 posts | You are probably right, as usual, and the delay of 60 seconds could be changed to a higher value. Why 12 hours ? |
NickR![]() from West Yorkshire, UK 332 posts |
" You are probably right, as usual, and the delay of 60 seconds could be changed to a higher value. Why 12 hours ? " I think I mentioned 12 hours as that is the default of the cache::put function. |
| Bernard from nearby-an-airport Associate, 6745 posts |
NickR: ok, now the full story is clear, and we can switch to the default value... Thank you! |
NickR![]() from West Yorkshire, UK 332 posts |
Bernard: I have been looking at when caching for the entire page is used... items are added to the cache on every render. But then the cached pages only seem to be called on index.php files, not on view.php eg articles\index.php 76 Cache::pass_through($root_cache_id); but on view.php this line is not there. Is there a reason for this (as I cannot see why pass_through is not called on every page) ? Cheers, Nick |
| Bernard from nearby-an-airport Associate, 6745 posts |
NickR: First tests of pass_through() made on articles/view.php have proven negative, because advanced commands were masked to editors. |
Rate this page
Posted by NickR on Oct. 20 2006, commented by Bernard on Oct. 20 2006, (popular)
