protected function _extend($name, $expiry, $group)
{
if (!$this->enabled) {
return null;
}
Plugins::act('cache_extend_before', $name, $group, $expiry);
$hash = $this->get_name_hash($name);
$ghash = $this->get_group_hash($group);
if (isset($this->cache_files[$ghash][$hash])) {
$this->cache_files[$ghash][$hash]['expires'] = time() + $expiry;
$this->clear_expired();
file_put_contents($this->index_file, serialize($this->cache_files));
}
Plugins::act('cache_extend_after', $name, $group, $expiry);
}