Project

General

Profile

Bug #22100 » 0013495_4-2.patch

Administrator Admin, 2010-03-15 16:45

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
$GLOBALS['TT']->setTSlogMessage($warning,2);
} else {
$warning = '&no_cache=1 has been supplied, so caching is disabled! URL: "'.t3lib_div::getIndpEnv('TYPO3_REQUEST_URL').'"';
$this->no_cache = $no_cache ? 1 : 0;
$this->disableCache();
}
t3lib_div::sysLog($warning, 'cms', 2);
}
......
// If the front-end is showing a preview, caching MUST be disabled.
if ($this->fePreview) {
$this->set_no_cache();
$this->disableCache();
}
}
$GLOBALS['TT']->pull();
......
$GLOBALS['TT']->setTSlogMessage($warning,2);
} else {
$warning.= 'Caching is disabled!';
$this->no_cache = 1;
$this->disableCache();
}
t3lib_div::sysLog($warning, 'cms', 2);
}
/**
* Disables caching of the current page.
*
* @return void
* @internal
*/
protected function disableCache() {
$this->no_cache = 1;
}
/**
* Sets the cache-timeout in seconds
*
* @param integer cache-timeout in seconds
(1-1/3)