Deprecation: #88406 - setCacheHash/noCacheHash options in ViewHelpers and UriBuilder

See Issue #88406

Description

Various Fluid ViewHelpers regarding linking have arguments similar to:

  • useCacheHash
  • noCacheHash

which are not evaluated anymore.

Extbase’s UriBuilder has the following options that have no effect anymore since the Site Handling concept automatically detects when to a cHash argument is necessary:

  • TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder->setUseCacheHash()
  • TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder->getUseCacheHash()

Impact

Calling the UriBuilder methods will trigger a PHP E_USER_DEPRECATED error.

Using the arguments noCacheHash/useCacheHash in the following ViewHelpers will trigger a PHP E_USER_DEPRECATED error:

  • f:form
  • f:link.action
  • f:link.page
  • f:link.typolink
  • f:uri.action
  • f:uri.page
  • f:uri.typolink
  • f:widget.link
  • f:widget.uri

If the underlying TypoLink logic is accessed directly, it will trigger a PHP E_USER_DEPRECATED error if .useCacheHash is set - without any effect either.

Affected Installations

Any TYPO3 installation with custom templates setting this argument in Fluid or extensions using Extbase’s UriBuilder in a custom fashion.

Migration

Remove any usages within the Fluid templates or Extension code.