Bug #20845 » bug_11663_part4.diff
typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie) | ||
---|---|---|
$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!';
|
||
if ($this->forceTemplateParsing || $this->displayEditIcons || $this->displayFieldEditIcons || $this->fePreview || is_object('tslib_feTCE') || is_object('tslib_AdminPanel')) {
|
||
// Ignore this setting if a frontend editing or preview mode is active
|
||
$warning.= 'Additionally, $TYPO3_CONF_VARS[\'FE\'][\'disableNoCacheParameter\'] was set but has been ignored because frontend editing or preview seems to be enabled for this session. Finally, caching has been disabled.';
|
||
$this->no_cache = 1;
|
||
} else {
|
||
$warning.= 'However, $TYPO3_CONF_VARS[\'FE\'][\'disableNoCacheParameter\'] is set, so it will be ignored!';
|
||
}
|
||
$GLOBALS['TT']->setTSlogMessage($warning,2);
|
||
} else {
|
||
$warning.= 'Caching is disabled!';
|