Bug #82984
closed
cHashExcludedParameters and ext_localconf.php setup
Added by Oliver Pfaff over 6 years ago.
Updated over 4 years ago.
Description
I set this in ext_localconf.php of my extension:
$GLOBALS['TYPO3_CONF_VARS']['FE']['cHashExcludedParameters'] .= ', my_getpara';
I can see under the configuration mod that my exclude parameter is set but in the FE the evaluation fails.
When i add the same parameter in the install tool the evaluation is fine. Maybe it is some bootstrap issue.
I have tested the same behaviour with TYPO3 7.6.23
I just noticed that bootstrap has a function which copies value from $GLOBALS['TYPO3_CONF_VARS']['FE']['cHashExcludedParameters'] to $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'] so this might be related.
Could you check wether this workaround does cure the problem?
# necessary workaround for ext_localconf.php ?
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_foo[bar]';
- Subject changed from cHashExcludedParameters and localconf.php setup to cHashExcludedParameters and ext_localconf.php setup
- Description updated (diff)
- Status changed from New to Closed
Closing for lack of feedback.
// TYPO3 6.x
$GLOBALS['TYPO3_CONF_VARS']['FE']['cHashExcludedParameters'] .= ',tx_myrandomnews[topic]';
// TYPO3 7.x
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_myrandomnews[topic]';
Workaround performs in TYPO3 8.6 too
// TYPO3 8.6
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_myrandomnews[topic]';
Also available in: Atom
PDF