/**
* Sets a reference to the cache frontend which uses this backend and
* initializes the default cache directory.
*
* @param \Neos\Cache\Frontend\FrontendInterface $cache The cache frontend
* @return void
* @throws Exception
*/
public function setCache(FrontendInterface $cache)
{
parent::setCache($cache);
$this->cacheEntryFileExtension = $cache instanceof PhpFrontend ? '.php' : '';
$this->configureCacheDirectory();
}