Skip to content

Instantly share code, notes, and snippets.

@bjrnqprs
Last active September 7, 2018 11:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bjrnqprs/5487083 to your computer and use it in GitHub Desktop.
Save bjrnqprs/5487083 to your computer and use it in GitHub Desktop.
Typo3 6.0 - Generate a cHash (Note: differs from cache identifier in Extbase caching framework)
<?php
/* @var $cacheHash \TYPO3\CMS\Frontend\Page\CacheHashCalculator */
$cacheHash = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\CacheHashCalculator');
$result = $cacheHash->generateForParameters($_SERVER['QUERY_STRING']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment