More flexible way to exclude arguments from cHash calculation
With TYPO3 9.5 a cHash is always appended when generating the final URI that has arguments the are not excluded from cHash.
Setting useCacheHash to 0 in typolink configuration has no effect.
This leads to issues when having array arguments like tx_solr[filters], which currently cannot be configured to be excluded.
There are multiple option to solve this
- Add possibility to use regex to configure includes and excludes from cHash
- Always require extensions to provide a white list of arguments they are using that require a cHash
- Add possibility to transform array arguments into a URI (like /solr/filter/type:tx_news_domain_model_news/filter/type:pages)
Updated by DANIEL Rémy over 2 years ago
The related issue on ext:solr's Github account: https://github.com/TYPO3-Solr/ext-solr/issues/2211
Updated by Marc Bastian Heinrichs over 2 years ago
It's not only appended, but also required by a request, right?!
Really sad to have no replacement for useCacheHash. Sometimes there is the requirement to have get parameters and the cHash could not be calculated in advance and cacheHash|excludedParameters is no option, because they are too dynamic.
Updated by Benni Mack about 1 year ago
Check out https://review.typo3.org/c/Packages/TYPO3.CMS/+/63062 as a feature to overcome this (v10 only unfortunately).
Updated by Helmut Hummel about 1 year ago
- Status changed from New to Closed
Yeah, that is exactly what I meant with "More flexible way to exclude arguments from cHash calculation".
On one hand I think this change deserves a backport to 9.5, as it could be done in a BC compatible way and fixes a quite important shortcoming.
otoh. 10LTS is almost ready to be released, so I'll close this as done