Lines Matching refs:cache
80 * Since page text is not changed, instruction and xhtml cache files are
88 * cache need to be purged and metadata must be rebuild again.
116 * prepare the cache object for default _useCache action
120 $cache =& $event->data;
123 if (!isset($cache->page)) return;
126 if ($cache->mode == 'xhtml') {
127 $metadata = p_get_metadata($cache->page, 'plugin pagetitle');
130 $html = $helper->html_youarehere(1, $cache->page, $traces);
136 $cache->depends['files'] = array_merge((array)$cache->depends['files'], $depends);
142 $pageTitled = in_array($cache->page, $pages);
146 // check title metadata whether cache files should be purged
147 $title = p_get_metadata($cache->page, 'title', METADATA_DONT_RENDER);
148 switch ($cache->mode) {
149 case 'i': // instruction cache
150 $request = ($title == $cache->page);
152 case 'metadata': // metadata cache?
153 $request = ($title == $cache->page);
155 case 'xhtml': // xhtml cache
156 $request = ($title == $cache->page);
160 $cache->depends['purge'] = $request;