Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Post your requirements here «  

full page cache in render_skin

avatarRhodes, Nick -- on Oct. 20 2006, from West Yorkshire, UK
YACS team (UK)
Hi

I notice the default cache time for page output is 60s, why not left to the default of 12 hours ?

Nick
Bernard
avatar
from nearby-an-airport
Associate, 6745 posts

on Oct. 20 2006


Nick, where have you found the 60 seconds figure?
NickR
avatar
from West Yorkshire, UK
332 posts

inspired from Bernard on Oct. 21 2006


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
avatar
from nearby-an-airport
Associate, 6745 posts

on Oct. 22 2006


You are probably right, as usual, and the delay of 60 seconds could be changed to a higher value. Why 12 hours ?
NickR
avatar
from West Yorkshire, UK
332 posts

inspired from Bernard on Oct. 23 2006


" 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
avatar
from nearby-an-airport
Associate, 6745 posts

inspired from NickR on Oct. 23 2006


NickR: ok, now the full story is clear, and we can switch to the default value... Thank you!
NickR
avatar
from West Yorkshire, UK
332 posts

inspired from Bernard on Oct. 31 2006


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
avatar
from nearby-an-airport
Associate, 6745 posts

inspired from NickR on Nov. 1 2006


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)