Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 43) sorted by path

12

/dokuwiki/
H A Dfeed.php36 // the feed is dynamic - we need a cache for each combo
44 $cache = new Cache($key, '.feed');
46 // prepare cache depends
57 if ($cache->useCache($depends)) {
58 http_conditionalRequest($cache->getTime());
59 if ($conf['allowdebug']) header("X-CacheUsed: $cache->cache");
60 echo $cache->retrieveCache();
69 $cache->storeCache($feed);
39 $cache = new Cache($key, '.feed'); global() variable
/dokuwiki/inc/Cache/
H A DCache.php16 public $ext = ''; // file ext for cache data, secondary identifier for this item
17 public $cache = ''; // cache file name variable in dokuwiki\\Cache\\Cache
18 public $depends = []; // array containing cache dependency information,
19 // used by makeDefaultCacheDecision to determine cache validity
27 protected $_nocache = false; // if set to true, cache will not be used or stored
38 $this->cache = getCacheName($key, $ext);
64 * public method to determine whether the cache can be used
66 * to assist in centralisation of event triggering and calculation of cache statistics,
69 * @param array $depends array of cache dependencie
[all...]
H A DCacheInstructions.php12 * @param string $file source file for cache
23 * @return array cache contents
27 $contents = io_readFile($this->cache, false);
32 * cache $instructions
43 return io_saveFile($this->cache, serialize($instructions));
/dokuwiki/inc/ChangeLog/
H A DChangeLog.php19 protected $cache = []; variable in dokuwiki\\ChangeLog\\ChangeLog
31 $this->cache =& $cache_revinfo;
32 if (!isset($this->cache[$id])) {
33 $this->cache[$id] = [];
109 * Parses a changelog line into its components and save revision info to the cache pool
119 $this->cache[$this->id][$info['date']] ??= $info;
160 // check if it's already in the memory cache
161 if (isset($this->cache[$this->id][$rev])) {
162 return $this->cache[$this->id][$rev];
172 // parse and cache changelo
[all...]
H A DMediaChangeLog.php55 if (isset($timestamp)) unset($this->cache[$this->id][$info['date']]);
60 io_saveFile($conf['media_changelog'], $logline, $append = true); //global changelog cache
62 // update cache
65 $this->cache[$this->id][$this->currentRevision] = $info;
H A DPageChangeLog.php55 if (isset($timestamp)) unset($this->cache[$this->id][$info['date']]);
60 io_saveFile($conf['changelog'], $logline, true); //global changelog cache
62 // update cache
65 $this->cache[$this->id][$this->currentRevision] = $info;
/dokuwiki/inc/File/
H A DPageFile.php259 $cache = new CacheInstructions($this->id, $this->getPath());
260 $cache->removeCache();
/dokuwiki/inc/
H A Dauth.php535 * @param bool $recache set to true to refresh the cache
570 static $cache = [];
572 if (!isset($cache[$cachekey]) || $recache) {
581 $cache[$cachekey] = $ok;
584 return $cache[$cachekey];
596 * @param bool $recache set to true to refresh the cache
842 $cache =& $cache_authname;
849 if (!isset($cache[$name][$skip_group])) {
851 $cache[$name][$skip_group] = '@' . preg_replace_callback(
857 $cache[
[all...]
H A Dcache.php12 class cache extends NewCache
11 class cache extends \dokuwiki\Cache\Cache global() class
H A Dcommon.php272 // cache most recent changelog line in metadata if missing and still valid
620 if (isset($more['cache']) && $more['cache'] == 'cache') unset($more['cache']);
636 $more = str_replace('cache=cache', '', $more); //skip default
1308 // if useheading is enabled, purge the cache of all linking pages
1312 $cache = new CacheRenderer($page, wikiFN($page), 'xhtml');
1313 $cache
[all...]
H A Dfetch.functions.php14 * The $cache parameter influences how long files may be kept in caches, the $public parameter
15 * influences if this caching may happen in public proxis or in the browser cache only FS#2734
23 * @param int $cache remaining cache time in seconds (-1 for $conf['cache'], 0 for no-cache)
32 function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp = [])
41 // calculate cache times
42 if ($cache == -1) {
45 } elseif ($cache >
28 sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp = []) global() argument
194 calc_cache($cache) global() argument
[all...]
H A Dhttputils.php17 * @param int $timestamp lastmodified time of the cache file
214 * HTTP headers. If a useable cache is present, it is passed to the web server
217 * @param string $cache cache file name
218 * @param bool $cache_ok if cache can be used
220 function http_cached($cache, $cache_ok)
224 // check cache age & handle conditional request
229 http_conditionalRequest(filemtime($cache));
230 if ($conf['allowdebug']) header("X-CacheUsed: $cache");
233 if ($conf['gzip_output'] && http_gzip_valid($cache)) {
215 http_cached($cache, $cache_ok) global() argument
[all...]
H A Dmedia.php1795 $cache = new CacheImageMod($file, $w, $h, $ext, $crop);
1796 if (!$cache->useCache()) {
1801 ->save($cache->cache, $ext);
1802 if ($conf['fperm']) @chmod($cache->cache, $conf['fperm']);
1809 return $cache->cache;
1881 * @param int $cache cachetime in seconds
1884 function media_get_from_URL($url, $ext, $cache)
1806 media_get_from_URL($url, $ext, $cache) global() argument
[all...]
H A Dpageutils.php130 $cache = & $cache_cleanid;
132 // check if it's already in the memory cache
133 if (!$ascii && isset($cache[(string)$raw_id])) {
134 return $cache[(string)$raw_id];
166 if (!$ascii) $cache[(string)$raw_id] = $id;
337 $cache = & $cache_wikifn;
344 if (isset($cache[$id]) && isset($cache[$id][$rev])) {
345 return $cache[$id][$rev];
365 if (!isset($cache[
[all...]
H A Dparserutils.php46 * 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
455 p_read_metadata($id, $cache = false) global() argument
[all...]
/dokuwiki/inc/parser/
H A Dhandler.php927 [$p['src'], $p['title'], $p['align'], $p['width'], $p['height'], $p['cache'], $p['linking']],
1133 $cache = $cachemode[1];
1135 $cache = 'cache';
1152 'cache' => $cache,
H A Dmetadata.php605 * @param string $cache cache|recache|nocache
614 $cache = null,
632 * @param string $cache cache|recache|nocache
641 $cache = null,
604 internalmedia($src, $title = null, $align = null, $width = null, $height = null, $cache = null, $linking = null) global() argument
625 externalmedia($src, $title = null, $align = null, $width = null, $height = null, $cache = null, $linking = null) global() argument
H A Drenderer.php34 'cache' => true, // may the rendered result cached?
67 $this->info['cache'] = true;
98 $this->info['cache'] = false;
671 * @param string $cache cache|recache|nocache
680 $cache = null,
693 * @param string $cache cache|recache|nocache
702 $cache = null,
715 * @param string $cache cach
606 internalmedia($src, $title = null, $align = null, $width = null, $height = null, $cache = null, $linking = null) global() argument
621 externalmedia($src, $title = null, $align = null, $width = null, $height = null, $cache = null, $linking = null) global() argument
635 internalmedialink($src, $title = null, $align = null, $width = null, $height = null, $cache = null) global() argument
649 externalmedialink($src, $title = null, $align = null, $width = null, $height = null, $cache = null) global() argument
[all...]
H A Dxhtml.php1179 * @param string $cache cache|recache|nocache
1190 $cache = null,
1203 $link = $this->_getMediaLinkConf($src, $title, $align, $width, $height, $cache, $render);
1211 'cache' => $cache,
1227 'cache' => $cache,
1264 * @param string $cache cache|recach
1119 internalmedia($src, $title = null, $align = null, $width = null, $height = null, $cache = null, $linking = null, $return = false) global() argument
1192 externalmedia($src, $title = null, $align = null, $width = null, $height = null, $cache = null, $linking = null, $return = false) global() argument
1570 _media($src, $title = null, $align = null, $width = null, $height = null, $cache = null, $render = true) global() argument
1764 _getMediaLinkConf($src, $title, $align, $width, $height, $cache, $render) global() argument
[all...]
/dokuwiki/lib/exe/
H A Dcss.php60 // cache influencers
114 $cache = new Cache(
124 $cache->setEvent('CSS_CACHE_USE');
126 // check cache age & handle conditional request
127 // This may exit if a cache can be used
128 $cache_ok = $cache->useCache(['files' => $cache_files]);
129 http_cached($cache->cache, $cache_ok);
196 http_cached_finish($cache->cache,
[all...]
H A Djquery.php21 * uses cache or fills it
25 $cache = new Cache('jquery', '.js');
33 // check cache age & handle conditional request
34 // This may exit if a cache can be used
35 $cache_ok = $cache->useCache(['files' => $cache_files]);
36 http_cached($cache->cache, $cache_ok);
44 http_cached_finish($cache->cache, $js);
H A Djs.php87 $cache = new Cache('scripts' . $_SERVER['HTTP_HOST'] . $_SERVER['SERVER_PORT'] . md5(serialize($files)), '.js');
88 $cache->setEvent('JS_CACHE_USE');
93 // check cache age & handle conditional request
94 // This may exit if a cache can be used
95 $cache_ok = $cache->useCache(['files' => $cache_files]);
96 http_cached($cache->cache, $cache_ok);
167 http_cached_finish($cache->cache, $js);
/dokuwiki/lib/plugins/config/lang/pt-br/
H A Dlang.php119 $lang['cachetime'] = 'Tempo máximo para o cache (seg)';
179 $lang['jquerycdn'] = 'Os scripts jQuery e jQuery UI devem ser carregados a partir de uma CND? Isso adiciona requisições HTTP adicionais, mas os arquivos podem carregar mais rapidamente e os usuários podem já tê-los no cache.';
231 $lang['readdircache'] = 'Tempo máximo para cache readdir (segundos)';
/dokuwiki/lib/plugins/config/lang/pt/
H A Dlang.php113 $lang['cachetime'] = 'Idade máxima para cache (seg)';
124 $lang['fetchsize'] = 'Tamanho máximo (bytes) que o fetch.php pode baixar de URLs externas, ex. para cache e redimensionamento de imagens externas.';
174 $lang['jquerycdn'] = 'Os arquivos de script jQuery e jQuery UI devem ser carregados de um CDN? Isso gera solicitações HTTP adicionais mas os arquivos são carregados mais rapidamente e os usuários já podem tê-los armazenados em cache.';
226 $lang['readdircache'] = 'Idade máxima para a cache readdir (seg)';
/dokuwiki/lib/plugins/extension/helper/
H A Drepository.php26 * Initialize the repository (cache), fetches data for all installed plugins
37 $cache = new Cache('##extension_manager##' . $name, '.repo');
42 !$cache->useCache(['age' => 3600 * 24])
57 $cache = new Cache('##extension_manager##' . $extension['plugin'], '.repo');
58 $cache->storeCache(serialize($extension));
80 $cache = new Cache('##extension_manager###hasAccess', '.repo');
82 if (!$cache->useCache(['age' => 60 * 10, 'purge' => !$usecache])) {
88 $cache->storeCache(0);
92 $cache->storeCache(0);
95 $cache
[all...]

12