Home
last modified time | relevance | path

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

123

/dokuwiki/_test/tests/inc/
H A Dcache_use.test.php14 private $cache; variable in cache_use_test
26 $this->cache = new CacheRenderer($ID, $file, 'xhtml');
27 $this->cache->storeCache('Test');
32 touch($this->cache->cache, $time);
46 $this->assertFalse($this->cache->useCache());
47 $this->assertNotEmpty($this->cache->depends['purge']);
55 touch($this->cache->file, filemtime($this->cache->cache));
56 $this->assertFalse($this->cache->useCache());
67 touch($this->cache->file, $time - 1);
68 touch($this->cache->cache, $time);
[all …]
H A Dcache_stalecheck.test.php16 $cache = new CacheRenderer($ID, $file, 'xhtml');
17 $cache->storeCache('Stale');
18 $stale = $cache->retrieveCache();
22 touch($cache->cache, $time);
/dokuwiki/vendor/simplepie/simplepie/src/Cache/
H A DRedis.php70 protected $cache; variable in SimplePie\\Cache\\Redis
105 $this->cache = $redis;
120 * @param NativeRedis $cache
122 public function setRedisClient(NativeRedis $cache) argument
124 $this->cache = $cache;
138 $response = $this->cache->set($this->name, serialize($data));
140 $this->cache->expire($this->name, $this->options['expire']);
153 $data = $this->cache->get($this->name);
168 $data = $this->cache->get($this->name);
184 $data = $this->cache->get($this->name);
[all …]
H A DPsr16.php64 private $cache; variable in SimplePie\\Cache\\Psr16
69 * @param CacheInterface $cache
71 public function __construct(CacheInterface $cache) argument
73 $this->cache = $cache;
94 $data = $this->cache->get($key, $default);
124 return $this->cache->set($key, $value, $ttl);
144 return $this->cache->delete($key);
H A DBaseDataCache.php61 private $cache; variable in SimplePie\\Cache\\BaseDataCache
63 public function __construct(Base $cache) argument
65 $this->cache = $cache;
86 $data = $this->cache->load();
136 return $this->cache->save($value);
156 return $this->cache->unlink();
H A DMemcached.php70 protected $cache; variable in SimplePie\\Cache\\Memcached
104 $this->cache = new NativeMemcached();
105 $this->cache->addServer($this->options['host'], (int)$this->options['port']);
128 $data = $this->cache->get($this->name);
142 $data = $this->cache->get($this->name . '_mtime');
152 $data = $this->cache->get($this->name);
162 return $this->cache->delete($this->name, 0);
172 … $this->cache->set($this->name . '_mtime', time(), (int)$this->options['extras']['timeout']);
173 return $this->cache->set($this->name, $data, (int)$this->options['extras']['timeout']);
H A DMemcache.php70 protected $cache; variable in SimplePie\\Cache\\Memcache
107 $this->cache = new NativeMemcache();
108 $this->cache->addServer($this->options['host'], (int) $this->options['port']);
122 …return $this->cache->set($this->name, serialize($data), MEMCACHE_COMPRESSED, (int) $this->options[…
132 $data = $this->cache->get($this->name);
147 $data = $this->cache->get($this->name);
164 $data = $this->cache->get($this->name);
167 …return $this->cache->set($this->name, $data, MEMCACHE_COMPRESSED, (int) $this->options['extras']['…
180 return $this->cache->delete($this->name, 0);
/dokuwiki/lib/exe/
H A Djquery.php25 $cache = new Cache('jquery', '.js');
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.php88 …$cache = new Cache('scripts' . $_SERVER['HTTP_HOST'] . $_SERVER['SERVER_PORT'] . md5(serialize($fi…
89 $cache->setEvent('JS_CACHE_USE');
96 $cache_ok = $cache->useCache(['files' => $cache_files]);
97 http_cached($cache->cache, $cache_ok);
168 http_cached_finish($cache->cache, $js);
/dokuwiki/
H A Dfeed.php44 $cache = new Cache($key, '.feed'); variable
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);
/dokuwiki/vendor/php81_bc/strftime/
H A D.gitignore26 .phpunit.result.cache
33 *.stTheme.cache
34 *.tmlanguage.cache
35 *.tmPreferences.cache
45 .sass-cache/
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/Reductions/
H A DBarrett.php62 static $cache = [
86 if (($key = array_search($m, $cache[self::VARIABLE])) === false) {
87 $key = count($cache[self::VARIABLE]);
88 $cache[self::VARIABLE][] = $m;
94 $cache[self::DATA][] = [
99 extract($cache[self::DATA][$key]);
156 static $cache = [
167 if (($key = array_search($n, $cache[self::VARIABLE])) === false) {
168 $key = count($cache[self::VARIABLE]);
169 $cache[self::VARIABLE][] = $n;
[all …]
/dokuwiki/inc/
H A Dfetch.functions.php23 * @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 = []) argument
42 if ($cache == -1) {
45 } elseif ($cache > 0) {
46 $maxage = $cache; // given time
198 * @param string $cache
201 function calc_cache($cache) argument
205 if (strtolower($cache) == 'nocache') return 0; //never cache
206 if (strtolower($cache) == 'recache') return $conf['cachetime']; //use standard cache
H A Dparserutils.php151 $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 cach…
162 $parsed .= "\n<!-- no cachefile used, but created {$cache->cache} -->\n";
165 $cache->removeCache(); //try to delete cachefile
192 $cache = new CacheInstructions($id, $file);
194 if ($cacheonly || $cache->useCache() || (isset($run[$file]) && !defined('DOKU_UNITTEST'))) {
195 return $cache->retrieveCache();
[all …]
H A Dhttputils.php217 * @param string $cache cache file name
220 function http_cached($cache, $cache_ok) argument
229 http_conditionalRequest(filemtime($cache));
230 if ($conf['allowdebug']) header("X-CacheUsed: $cache");
233 if ($conf['gzip_output'] && http_gzip_valid($cache)) {
236 readfile($cache . ".gz");
238 http_sendfile($cache);
239 readfile($cache);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/
H A DMontgomeryMult.php46 static $cache = [
51 if (($key = array_search($m, $cache[self::VARIABLE])) === false) {
52 $key = count($cache[self::VARIABLE]);
53 $cache[self::VARIABLE][] = $m;
54 $cache[self::DATA][] = self::modInverse67108864($m, $class);
65 $temp = $temp * $cache[self::DATA][$key];
H A DMontgomery.php57 static $cache = [
62 if (($key = array_search($n, $cache[self::VARIABLE])) === false) {
63 $key = count($cache[self::VARIABLE]);
64 $cache[self::VARIABLE][] = $x;
65 $cache[self::DATA][] = self::modInverse67108864($n, $class);
73 $temp = $result[self::VALUE][$i] * $cache[self::DATA][$key];
H A DBarrett.php51 static $cache = [
81 if (($key = array_search($m, $cache[self::VARIABLE])) === false) {
82 $key = count($cache[self::VARIABLE]);
83 $cache[self::VARIABLE][] = $m;
96 $cache[self::DATA][] = [
101 extract($cache[self::DATA][$key]);
159 static $cache = [
175 if (($key = array_search($n, $cache[self::VARIABLE])) === false) {
176 $key = count($cache[self::VARIABLE]);
177 $cache[self::VARIABLE][] = $n;
[all …]
/dokuwiki/inc/Cache/
H A DCacheInstructions.php27 $contents = io_readFile($this->cache, false);
43 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 DPageChangeLog.php55 if (isset($timestamp)) unset($this->cache[$this->id][$info['date']]);
65 $this->cache[$this->id][$this->currentRevision] = $info;
H A DMediaChangeLog.php55 if (isset($timestamp)) unset($this->cache[$this->id][$info['date']]);
65 $this->cache[$this->id][$this->currentRevision] = $info;
/dokuwiki/vendor/splitbrain/php-cli/
H A D.gitignore8 .phpunit.result.cache
/dokuwiki/vendor/splitbrain/lesserphp/
H A D.gitignore11 .phpunit.result.cache
/dokuwiki/vendor/splitbrain/php-archive/
H A D.gitignore9 .phpunit.result.cache

123