Lines Matching refs:cache
217 * Expire the renderer cache of archive pages whenever a page is updated or a comment or linkback is added
226 /** @var cache_parser $cache */
227 $cache = $event->data;
228 if (!in_array($cache->mode, array('xhtml', 'metadata'))) return;
229 $page = $cache->page;
233 if (strpos($cache->file, $conf['datadir']) === 0) {
234 $page = pathID(substr($cache->file, strlen($conf['datadir'])+1));
244 $cache->depends['files'][] = $conf['cachedir'].'/purgefile';
245 $cache->depends['files'][] = $conf['metadir'].'/_comments.changes';
246 $cache->depends['files'][] = $conf['metadir'].'/_linkbacks.changes';
249 // purge the cache when a page is listed that the current user can't access
253 $cache->depends['purge'] = true;