Lines Matching refs:cache
36 $cache = $event->data;
37 if (isset($cache->mode) && ($cache->mode == 'xhtml')) {
40 $this->addDependencies($cache, array_keys($depends['rendering']));
46 * Add extra dependencies to the cache
48 protected function addDependencies($cache, $depends)
51 if (!is_array($cache->depends)) {
52 $cache->depends = [];
54 if (!array_key_exists('files', $cache->depends)) {
55 $cache->depends['files'] = [];
59 if (!in_array($file, $cache->depends['files']) && @file_exists($file)) {
60 $cache->depends['files'][] = $file;