Project

General

Profile

Feature #20849 » 0011669_v2.patch

Administrator Admin, 2009-09-16 13:11

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
*
* @return void
*/
function set_no_cache() {
if (function_exists('debug_backtrace')) {
function set_no_cache($reason = '') {
if (strlen($reason)) {
$warning = '$TSFE->set_no_cache() was triggered. Reason: ' . $reason . '.';
} else {
$trace = debug_backtrace();
// This is a hack to work around ___FILE___ resolving symbolic links
$PATH_site_real = str_replace('t3lib','',realpath(PATH_site.'t3lib'));
......
}
$line = $trace[0]['line'];
$trigger = $file.' on line '.$line;
} else {
$trigger = '[unknown]';
$warning = '$TSFE->set_no_cache() was triggered by '.$trigger.'.';
}
$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!';
$warning.= ' Caching is disabled!';
$this->no_cache = 1;
}
t3lib_div::sysLog($warning, 'cms', 2);
}
(3-3/4)