Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 38) sorted by relevance

12

/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Cache/
H A DRedis.php33 protected $cache; variable in SimplePie_Cache_Redis
74 $this->cache = $redis;
91 public function setRedisClient(\Redis $cache) { argument
92 $this->cache = $cache;
105 $response = $this->cache->set($this->name, serialize($data));
119 $data = $this->cache->get($this->name);
134 $data = $this->cache->get($this->name);
150 $data = $this->cache->get($this->name);
153 $return = $this->cache->set($this->name, $data);
155 return $this->cache->expire($this->name, $this->ttl);
[all …]
H A DMemcache.php64 protected $cache; variable in SimplePie_Cache_Memcache
101 $this->cache = new Memcache();
102 $this->cache->addServer($this->options['host'], (int) $this->options['port']);
117 …return $this->cache->set($this->name, serialize($data), MEMCACHE_COMPRESSED, (int) $this->options[…
127 $data = $this->cache->get($this->name);
143 $data = $this->cache->get($this->name);
161 $data = $this->cache->get($this->name);
165 …return $this->cache->set($this->name, $data, MEMCACHE_COMPRESSED, (int) $this->options['extras']['…
178 return $this->cache->delete($this->name, 0);
H A DMemcached.php64 protected $cache; variable in SimplePie_Cache_Memcached
97 $this->cache = new Memcached();
98 $this->cache->addServer($this->options['host'], (int)$this->options['port']);
119 $data = $this->cache->get($this->name);
132 $data = $this->cache->get($this->name . '_mtime');
141 $data = $this->cache->get($this->name);
150 return $this->cache->delete($this->name, 0);
160 … $this->cache->set($this->name . '_mtime', time(), (int)$this->options['extras']['timeout']);
161 return $this->cache->set($this->name, $data, (int)$this->options['extras']['timeout']);
/dokuwiki/lib/exe/
H A Djquery.php24 $cache = new Cache('jquery', '.js');
34 $cache_ok = $cache->useCache(array('files' => $cache_files));
35 http_cached($cache->cache, $cache_ok);
43 http_cached_finish($cache->cache, $js);
H A Djs.php82 …$cache = new Cache('scripts'.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'].md5(serialize($files)),…
83 $cache->setEvent('JS_CACHE_USE');
90 $cache_ok = $cache->useCache(array('files' => $cache_files));
91 http_cached($cache->cache, $cache_ok);
159 http_cached_finish($cache->cache, $js);
H A Dcss.php106 $cache = new Cache(
116 $cache->setEvent('CSS_CACHE_USE');
120 $cache_ok = $cache->useCache(array('files' => $cache_files));
121 http_cached($cache->cache, $cache_ok);
184 http_cached_finish($cache->cache, $css);
/dokuwiki/lib/plugins/extension/helper/
H A Drepository.php40 !$cache->useCache(array('age' => 3600 * 24))
55 $cache->storeCache(serialize($extension));
80 $cache->storeCache(1);
83 $cache->storeCache(0);
86 $this->has_access = ($cache->retrieveCache(false) == 1);
100 $cache = new Cache('##extension_manager##'.$name, '.repo');
104 !$cache->useCache(array('age' => 3600 * 24))
112 $cache->storeCache(serialize($result[0]));
120 if (file_exists($cache->cache)) {
121 return unserialize($cache->retrieveCache(false));
[all …]
/dokuwiki/inc/
H A Dfetch.functions.php19 * @param int $cache remaining cache time in seconds (-1 for $conf['cache'], 0 for no-cache)
28 function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp=[]) { argument
37 if($cache == -1) {
40 } else if($cache > 0) {
41 $maxage = $cache; // given time
191 * @param string $cache
194 function calc_cache($cache) { argument
197 if(strtolower($cache) == 'nocache') return 0; //never cache
198 if(strtolower($cache) == 'recache') return $conf['cachetime']; //use standard cache
H A Dparserutils.php136 if ($cache->useCache()) {
139 $parsed .= "\n<!-- cachefile {$cache->cache} used -->\n";
146 $parsed .= "\n<!-- no cachefile used, but created {$cache->cache} -->\n";
178 return $cache->retrieveCache();
182 if ($cache->storeCache($ins)) {
246 $cache = ($ID == $id);
247 $meta = p_read_metadata($id, $cache);
334 $cache = ($ID == $id);
436 function p_read_metadata($id,$cache=false) { argument
446 if ($cache) {
[all …]
H A Dhttputils.php217 * @param string $cache cache file name
220 function http_cached($cache, $cache_ok) { argument
228 http_conditionalRequest(filemtime($cache));
229 if($conf['allowdebug']) header("X-CacheUsed: $cache");
232 if ($conf['gzip_output'] && http_gzip_valid($cache)) {
235 readfile($cache.".gz");
237 http_sendfile($cache);
238 readfile($cache);
H A Dpageutils.php119 $cache = & $cache_cleanid;
122 if (!$ascii && isset($cache[(string)$raw_id])) {
123 return $cache[(string)$raw_id];
155 if (!$ascii) $cache[(string)$raw_id] = $id;
296 $cache = & $cache_wikifn;
303 if (isset($cache[$id]) && isset($cache[$id][$rev])) {
304 return $cache[$id][$rev];
324 if (!isset($cache[$id])) { $cache[$id] = array(); }
325 $cache[$id][$rev] = $fn;
H A Dcache.php11 class cache extends \dokuwiki\Cache\Cache class
H A Dauth.php483 static $cache = [];
485 if (!isset($cache[$cachekey]) || $recache) {
494 $cache[$cachekey] = $ok;
497 return $cache[$cachekey];
748 $cache =& $cache_authname;
755 if(!isset($cache[$name][$skip_group])) {
757 $cache[$name][$skip_group] = '@'.preg_replace_callback(
762 $cache[$name][$skip_group] = preg_replace_callback(
769 return $cache[$name][$skip_group];
/dokuwiki/inc/Cache/
H A DCacheInstructions.php28 $contents = io_readFile($this->cache, false);
44 return io_saveFile($this->cache, serialize($instructions));
H A DCache.php17 public $cache = ''; // cache file name variable in dokuwiki\\Cache\\Cache
38 $this->cache = getCacheName($key, $ext);
118 if (!($this->_time = @filemtime($this->cache))) {
161 return io_readFile($this->cache, $clean);
176 return io_saveFile($this->cache, $data);
184 @unlink($this->cache);
/dokuwiki/inc/ChangeLog/
H A DChangeLog.php16 protected $cache; variable in dokuwiki\\ChangeLog\\ChangeLog
28 $this->cache =& $cache_revinfo;
29 if (!isset($this->cache[$id])) {
30 $this->cache[$id] = array();
90 if (isset($this->cache[$this->id]) && isset($this->cache[$this->id][$rev])) {
91 return $this->cache[$this->id][$rev];
105 $this->cache[$this->id][$tmp['date']] = $tmp;
108 if (!isset($this->cache[$this->id][$rev])) {
111 return $this->cache[$this->id][$rev];
236 $this->cache[$this->id][$tmp['date']] = $tmp;
[all …]
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/
H A DIRI.php793 static $cache;
796 $cache = null;
799 if (!$cache)
801 $cache = array();
878 static $cache;
881 $cache = null;
884 if (!$cache)
885 $cache = array();
1049 static $cache;
1052 $cache = null;
[all …]
H A DParser.php381 static $cache = array();
382 if (!isset($cache[$string]))
407 $cache[$string] = array($namespace, $local_name);
411 $cache[$string] = array('', $string);
414 return $cache[$string];
H A DSanitize.php338 …$cache = $this->registry->call('Cache', 'get_handler', array($this->cache_location, $image_url, 's…
340 if ($cache->load())
351 if ($cache->save(array('headers' => $file->headers, 'body' => $file->body)))
/dokuwiki/inc/parser/
H A Drenderer.php642 * @param string $cache cache|recache|nocache
646 $height = null, $cache = null, $linking = null) { argument
657 * @param string $cache cache|recache|nocache
661 $height = null, $cache = null, $linking = null) { argument
672 * @param string $cache cache|recache|nocache
675 $width = null, $height = null, $cache = null) { argument
686 * @param string $cache cache|recache|nocache
689 $width = null, $height = null, $cache = null) { argument
H A Dxhtml.php1164 * @param string $cache cache|recache|nocache
1187 'cache' => $cache,
1203 'cache' => $cache,
1236 * @param string $cache cache|recache|nocache
1262 $link['url'] = ml($src, array('cache' => $cache));
1619 * @param string $cache cache|recache|nocache
1624 $height = null, $cache = null, $render = true) { argument
1656 'cache' => $cache,
1814 * @param string $cache cache|recache|nocache
1903 $cache = null,
[all …]
H A Dmetadata.php599 * @param string $cache cache|recache|nocache
603 $height = null, $cache = null, $linking = null) argument
620 * @param string $cache cache|recache|nocache
624 $height = null, $cache = null, $linking = null) argument
/dokuwiki/
H A Dfeed.php37 $cache = new Cache($key, '.feed'); variable
50 if($cache->useCache($depends)) {
51 http_conditionalRequest($cache->getTime());
52 if($conf['allowdebug']) header("X-CacheUsed: $cache->cache");
53 print $cache->retrieveCache();
97 $cache->storeCache($feed);
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Parse/
H A DDate.php600 static $cache;
601 if (!isset($cache[get_class($this)]))
609 $cache[get_class($this)][] = $method;
614 foreach ($cache[get_class($this)] as $method)
/dokuwiki/vendor/simplepie/simplepie/library/
H A DSimplePie.php1367 $cache = false;
1473 if ($cache && !$cache->save($this))
1523 if ($cache)
1532 $cache->unlink();
1538 $cache = false;
1554 $cache->unlink();
1588 $cache->touch();
1597 $cache->touch();
1615 $cache->unlink();
1707 if ($cache)
[all …]

12