Bug #82984

cHashExcludedParameters and ext_localconf.php setup

Added by Oliver Pfaff about 2 years ago. Updated 2 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-11-13
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

History

#1 Updated by Peter Niederlag over 1 year ago

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]';

#2 Updated by Stephan GroƟberndt 3 months ago

  • 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]';

#3 Updated by Joerg Kummer 2 months ago

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