Lines Matching full:cache
12 use dokuwiki\Cache\CacheInstructions;
13 use dokuwiki\Cache\CacheRenderer;
46 * Render metadata using the metadata cache logic. The P_GET_METADATA_RENDER_LIMIT
50 * the simple cache mode that metadata needs to be rendered for all pages at once
59 * limited. This can be combined with the simple cache using
151 $cache = new CacheRenderer($id, $file, $format);
152 if ($cache->useCache()) {
153 $parsed = $cache->retrieveCache(false);
155 $parsed .= "\n<!-- cachefile {$cache->cache} used -->\n";
160 if (!empty($info['cache']) && $cache->storeCache($parsed)) { // storeCache() attempts to save cachefile
162 $parsed .= "\n<!-- no cachefile used, but created {$cache->cache} -->\n";
165 $cache->removeCache(); //try to delete cachefile
178 * Uses and creates a serialized cache file
192 $cache = new CacheInstructions($id, $file);
194 if ($cacheonly || $cache->useCache() || (isset($run[$file]) && !defined('DOKU_UNITTEST'))) {
195 return $cache->retrieveCache();
197 // no cache - do some work
199 if ($cache->storeCache($ins)) {
202 msg('Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.', -1);
260 // cache the current page
263 $cache = ($ID == $id);
264 $meta = p_read_metadata($id, $cache);
274 // prevent recursive calls in the cache
286 if (!file_exists($metafn) || @filemtime($pagefn) > @filemtime($cachefile->cache)) {
351 // cache the current page
352 $cache = ($ID == $id);
353 $orig = p_read_metadata($id, $cache);
440 * read the metadata from source/cache for $id
444 * @param bool $cache whether or not to cache metadata in memory
451 function p_read_metadata($id, $cache = false)
462 if ($cache) {
661 * @param array $info returns render info like enabled toc and cache
746 $Renderer->nocache(); // fallback only (and may include admin alerts), don't cache
795 $cache = getCacheName($language . $code . $optionsmd5, ".code");
796 $ctime = @filemtime($cache);
802 $highlighted_code = io_readFile($cache, false);
820 io_saveFile($cache, $highlighted_code);