Lines Matching refs:cache
39 * For pages potentially containing schema data, refresh the cache when schema data has been
49 /** @var \cache_parser $cache */
50 $cache = $event->data;
51 if ($cache->mode != 'xhtml') return true;
52 if (!$cache->page) return true; // not a page cache
55 if (!$assignments->getPageAssignments($cache->page)) return true; // no struct here
57 $cache->depends['files'][] = self::getSchemaRefreshFile();
63 * to the cache dependencies
74 /** @var \cache_parser $cache */
75 $cache = $event->data;
76 if ($cache->mode != 'xhtml') return true;
77 if (!$cache->page) return true; // not a page cache
79 $meta = p_get_metadata($cache->page, 'plugin struct');
83 // cache depends on last database save
86 $cache->depends['files'][] = $sqlite->getDbFile();
89 // dynamic renders should never overwrite the default page cache
91 // influence if a cache is used, not that it will be written
97 $cache->key .= 'dynamic';
100 // cache depends on today's date
102 $oldage = $cache->depends['age'];
104 $cache->depends['age'] = min($oldage, $newage);
107 // cache depends on current user
109 $cache->key .= ';' . $INPUT->server->str('REMOTE_USER');
113 $cache->cache = getCacheName($cache->key, $cache->ext);
120 * Disable cache when dymanic parameters are present
129 /** @var \cache_parser $cache */
130 $cache = $event->data;
131 if ($cache->mode != 'xhtml') return true;
132 if (!$cache->page) return true; // not a page cache
135 // disable cache use when one of these parameters is present