$suffix =
substr($name, 0, self::SUFFIX_SUBSTRING_LENGTH
) . '_';
$suffix .=
substr(Crypt::
hashBase64($className), 0, self::SUFFIX_SUBSTRING_LENGTH
);
// The cache prefix is what gets invalidated.
return $this->templateCacheFilenamePrefix . '_' .
$suffix;
} /**
* {@inheritdoc}
*/
public function load(string
$key): void
{ $this->
storage()->
load($key);
} /**
* {@inheritdoc}
*/
public function write(string
$key, string
$content): void
{ $this->
storage()->
save($key,
$content);
// Save the last mtime.
$cid = 'twig:' .
$key;
$this->cache->
set($cid, REQUEST_TIME
);
}