Project

General

Profile

Bug #21690 ยป 15393_01.diff

Administrator Admin, 2010-08-08 13:53

View differences:

t3lib/class.t3lib_page.php (working copy)
$hash,
$data,
array('ident_' . $ident),
$lifetime
intval($lifetime)
);
}
} else {
typo3/sysext/cms/tslib/class.tslib_fe.php (working copy)
* @var t3lib_TStemplate
*/
var $tmpl='';
var $cacheTimeOutDefault=''; // Is set to the time-to-live time of cached pages. If false, default is 60*60*24, which is 24 hours.
var $cacheTimeOutDefault = FALSE; // Is set to the time-to-live time of cached pages. If false, default is 60*60*24, which is 24 hours.
var $cacheContentFlag = 0; // Set internally if cached content is fetched from the database
var $cacheExpires=0; // Set to the expire time of cached content
var $isClientCachable=FALSE; // Set if cache headers allowing caching are sent.
......
function get_cache_timeout() {
// Cache period was set for the page:
if ($this->page['cache_timeout']) {
$cacheTimeout = $this->page['cache_timeout'];
$cacheTimeout = intval($this->page['cache_timeout']);
// Cache period was set for the whole site:
} elseif ($this->cacheTimeOutDefault) {
$cacheTimeout = $this->cacheTimeOutDefault;
    (1-1/1)