/** * Initializes the identifier prefix when setting the cache. * * @param \TYPO3\FLOW3\Cache\Frontend\FrontendInterface $cache * @return void */ public function setCache(\TYPO3\FLOW3\Cache\Frontend\FrontendInterface $cache) { parent::setCache($cache); $processUser = extension_loaded('posix') ? posix_getpwuid(posix_geteuid()) : array('name' => 'default'); $pathHash = substr(md5(FLOW3_PATH_WEB . PHP_SAPI . $processUser['name'] . $this->context), 0, 12); $this->identifierPrefix = 'FLOW3_' . $pathHash; }
/** * Initializes the identifier prefix when setting the cache. * * @param \TYPO3\Flow\Cache\Frontend\FrontendInterface $cache * @return void */ public function setCache(\TYPO3\Flow\Cache\Frontend\FrontendInterface $cache) { parent::setCache($cache); $pathHash = substr(md5(FLOW_PATH_ROOT . $this->context . $cache->getIdentifier()), 0, 12); $this->identifierPrefix = 'Flow_' . $pathHash . '_'; }
/** * Initializes the identifier prefix when setting the cache. * * @param \TYPO3\FLOW3\Cache\Frontend\FrontendInterface $cache * @return void */ public function setCache(\TYPO3\FLOW3\Cache\Frontend\FrontendInterface $cache) { parent::setCache($cache); $this->identifierPrefix = 'FLOW3_' . md5($cache->getIdentifier() . \TYPO3\FLOW3\Utility\Files::getUnixStylePath($_SERVER['SCRIPT_FILENAME']) . PHP_SAPI) . '_'; }