Project

General

Profile

Feature #20849 » bug_11669_no_cache_reason_w.diff

Administrator Admin, 2009-08-07 15:56

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
*
* @return void
*/
function set_no_cache() {
function set_no_cache($reason = '') {
if (strlen($reason)) {
$warning = '$TSFE->set_no_cache() was triggered. Reason: ' . $reason . '.';
} else {
if (function_exists('debug_backtrace')) {
$trace = debug_backtrace();
// This is a hack to work around ___FILE___ resolving symbolic links
......
} else {
$trigger = '[unknown]';
}
$warning = '$TSFE->set_no_cache() was triggered by '.$trigger.'. ';
}
if ($this->TYPO3_CONF_VARS['FE']['disableNoCacheParameter']) {
$warning.= 'However $TYPO3_CONF_VARS[\'FE\'][\'disableNoCacheParameter\'] is set, so it will be ignored!';
$warning.= ' However, $TYPO3_CONF_VARS[\'FE\'][\'disableNoCacheParameter\'] is set, so it will be ignored!';
$GLOBALS['TT']->setTSlogMessage($warning,2);
} else {
$warning.= 'Caching is disabled!';
(2-2/4)