Neos.Fusion/Classes/Core/Cache/ContentCache.php
protected function renderContentCacheEntryIdentifier($fusionPath, array $cacheIdentifierValues)
    {
        ksort($cacheIdentifierValues);

        $identifierSource = '';
        foreach ($cacheIdentifierValues as $key => $value) {
            if ($value instanceof CacheAwareInterface) {
                $identifierSource .= $key . '=' . $value->getCacheEntryIdentifier() . '&';
            } elseif (is_string($value) || is_bool($value) || is_integer($value)) {
                $identifierSource .= $key . '=' . $value . '&';
            } elseif ($value !== null) {
                throw new CacheException(sprintf('Invalid cache entry identifier @cache.entryIdentifier.%s for path "%s". A entry identifier value must be a string or implement CacheAwareInterface.', $key, $fusionPath), 1395846615);
            }
        }
        $identifierSource .= 'securityContextHash=' . $this->securityContext->getContextHash();

        return md5($fusionPath . '@' . $identifierSource);
    }
protected function renderContentCacheEntryIdentifier($fusionPath, array $cacheIdentifierValues)
    {
        ksort($cacheIdentifierValues);

        $identifierSource = '';
        foreach ($cacheIdentifierValues as $key => $value) {
            if ($value instanceof CacheAwareInterface) {
                $identifierSource .= $key . '=' . $value->getCacheEntryIdentifier() . '&';
            } elseif (is_string($value) || is_bool($value) || is_integer($value)) {
                $identifierSource .= $key . '=' . $value . '&';
            } elseif ($value !== null) {
                throw new CacheException(sprintf('Invalid cache entry identifier @cache.entryIdentifier.%s for path "%s". A entry identifier value must be a string or implement CacheAwareInterface.', $key, $fusionPath), 1395846615);
            }
        }
        $identifierSource .= 'securityContextHash=' . $this->securityContext->getContextHash();

        return md5($fusionPath . '@' . $identifierSource);
    }
protected function renderContentCacheEntryIdentifier ( $ fusionPath , array $ cacheIdentifierValues ) { ksort ( $ cacheIdentifierValues ) ; $ identifierSource = '' ; foreach ( $ cacheIdentifierValues as $ key => $ value ) { if ( $ value instanceof CacheAwareInterface ) { $ identifierSource .= $ key . '=' . $ value -> getCacheEntryIdentifier ( ) . '&' ; } elseif ( is_string ( $ value ) || is_bool ( $ value ) || is_integer ( $ value ) ) { $ identifierSource .= $ key . '=' . $ value . '&' ; } elseif ( $ value !== null ) { throw new CacheException ( sprintf ( 'Invalid cache entry identifier @cache.entryIdentifier.%s for path "%s". A entry identifier value must be a string or implement CacheAwareInterface.' , $ key , $ fusionPath ) , 1395846615 ) ; } } $ identifierSource .= 'securityContextHash=' . $ this -> securityContext -> getContextHash ( ) ; return md5 ( $ fusionPath . '@' . $ identifierSource ) ; }
Renders an identifier for a content cache entry

@param string $fusionPath
@param array $cacheIdentifierValues
@return string An MD5 hash built from the fusionPath and certain elements of the given identifier values
@throws CacheException If an invalid entry identifier value is given
Renders an identifier for a content cache entry