Feature #90234

Introduce CacheHashConfiguration and matching indicators

Added by Oliver Hader 9 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2020-01-28
Due date:
% Done:

100%

PHP Version:
7.2
Tags:
Complexity:
Sprint Focus:

Description

$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash'] = [
  'excludedParameters' => [
    'utm_source',
    'utm_medium',
    '^utm_', // making previous two obsolete
  ],
  'excludedParametersIfEmpty' => [
    '^tx_my_plugin[aspects]',
    'tx_my_plugin[filter]',
  ],
];

Related issues

Related to TYPO3 Core - Bug #87120: More flexible way to exclude arguments from cHash calculation Closed 2018-12-11
Related to TYPO3 Core - Task #92597: Fix documentation rendering of issue #90234 Resolved 2020-10-19

Associated revisions

Revision cd7cfb55 (diff)
Added by Oliver Hader 9 months ago

[FEATURE] Introduce CacheHashConfiguration and matching indicators

Settings for $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash'] are modelled
in CacheHashConfiguration which takes care of validating configuration.
It also determines whether corresponding aspects apply to a given URL
parameter.

Besides exact matches (equals) it is possible to apply partial matches at
the beginning of a parameter (startsWith) or inline occurrences (contains).

URL parameter names are prefixed with the following indicators:
+ = (equals): exact match, default behavior if not given
+ ^ (startsWith): matching the beginning of a parameter name
+ ~ (contains): matching any inline occurrence in a parameter name

These indicators can be used for all previously existing sub-properties
'cachedParametersWhiteList', 'excludedParameters', 'excludedParametersIfEmpty'
and 'requireCacheHashPresenceParameters'.

Example:
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash'] = [
'excludedParameters' => [
'utm_source',
'utm_medium',
'^utm_', // making previous two obsolete
],
'excludedParametersIfEmpty' => [
'^tx_my_plugin[aspects]',
'tx_my_plugin[filter]',
],
];

Resolves: #90234
Releases: master
Change-Id: I16d316e463b7c94c5eb75069f8c24ffde135d080
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63062
Tested-by: TYPO3com <>
Tested-by: Benni Mack <>
Tested-by: Susanne Moog <>
Reviewed-by: Benni Mack <>
Reviewed-by: Susanne Moog <>

Revision 7c1fce45 (diff)
Added by Oliver Hader 9 days ago

[TASK] Fix documentation rendering

Resolves: #92597
Related: #90234
Releases: master, 10.4
Change-Id: I2b98f6ad8cc707231b5f8981954cb963db903864
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66173
Tested-by: TYPO3com <>
Tested-by: Oliver Bartsch <>
Tested-by: Christian Kuhn <>
Reviewed-by: Oliver Bartsch <>
Reviewed-by: Christian Kuhn <>

Revision 965534c6 (diff)
Added by Oliver Hader 9 days ago

[TASK] Fix documentation rendering

Resolves: #92597
Related: #90234
Releases: master, 10.4
Change-Id: I2b98f6ad8cc707231b5f8981954cb963db903864
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66129
Tested-by: TYPO3com <>
Tested-by: Christian Kuhn <>
Reviewed-by: Christian Kuhn <>

History

#1 Updated by Gerrit Code Review 9 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63062

#2 Updated by Gerrit Code Review 9 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63062

#3 Updated by Gerrit Code Review 9 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63062

#4 Updated by Gerrit Code Review 9 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63062

#5 Updated by Gerrit Code Review 9 months ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63062

#6 Updated by Oliver Hader 9 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#7 Updated by Benni Mack 8 months ago

  • Status changed from Resolved to Closed

#8 Updated by Oliver Hader 7 months ago

  • Related to Bug #87120: More flexible way to exclude arguments from cHash calculation added

#9 Updated by Oliver Hader 9 days ago

  • Related to Task #92597: Fix documentation rendering of issue #90234 added

Also available in: Atom PDF