Feature #20849 » bug_11669_no_cache_reason_w.diff
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!';
|