Home
last modified time | relevance | path

Searched refs:cache (Results 1 - 25 of 30) sorted by relevance

12

/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Cache/
H A DRedis.php33 protected $cache; variable
57 * Create a new cache object
60 * @param string $name Unique ID for the cache
64 //$this->cache = \flow\simple\cache\Redis::getRedisClientInstance();
74 $this->cache = $redis; variable
89 * @param \Redis $cache
91 public function setRedisClient(\Redis $cache) {
92 $this->cache = $cache; variable
[all...]
H A DMemcached.php64 protected $cache; variable
79 * Create a new cache object
81 * @param string $name Unique ID for the cache
97 $this->cache = new Memcached(); variable
98 $this->cache->addServer($this->options['host'], (int)$this->options['port']);
102 * Save data to the cache
103 * @param array|SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
115 * Retrieve the data saved to the cache
119 $data = $this->cache
[all...]
H A DMemcache.php64 protected $cache; variable
81 * Create a new cache object
84 * @param string $name Unique ID for the cache
101 $this->cache = new Memcache(); variable
102 $this->cache->addServer($this->options['host'], (int) $this->options['port']);
106 * Save data to the cache
108 * @param array|SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
117 return $this->cache->set($this->name, serialize($data), MEMCACHE_COMPRESSED, (int) $this->options['extras']['timeout']);
121 * Retrieve the data saved to the cache
[all...]
/dokuwiki/lib/plugins/extension/helper/
H A Drepository.php25 * Initialize the repository (cache), fetches data for all installed plugins
36 $cache = new Cache('##extension_manager##'.$name, '.repo'); variable
40 !$cache->useCache(array('age' => 3600 * 24))
54 $cache = new Cache('##extension_manager##'.$extension['plugin'], '.repo'); variable
55 $cache->storeCache(serialize($extension));
72 $cache = new Cache('##extension_manager###hasAccess', '.repo'); variable
74 if (!$cache->useCache(array('age' => 60*10, 'purge' => !$usecache))) {
80 $cache->storeCache(1);
83 $cache->storeCache(0);
86 $this->has_access = ($cache
100 $cache = new Cache('##extension_manager##'.$name, '.repo'); global() variable
147 $cache = new Cache('##extension_manager##'.$name, '.repo'); global() variable
[all...]
/dokuwiki/lib/exe/
H A Djquery.php21 * uses cache or fills it
24 $cache = new Cache('jquery', '.js'); variable
32 // check cache age & handle conditional request
33 // This may exit if a cache can be used
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 Dcss.php54 // cache influencers
106 $cache = new Cache( variable
116 $cache->setEvent('CSS_CACHE_USE');
118 // check cache age & handle conditional request
119 // This may exit if a cache can be used
120 $cache_ok = $cache->useCache(array('files' => $cache_files));
121 http_cached($cache->cache, $cache_ok);
184 http_cached_finish($cache->cache,
[all...]
H A Djs.php82 $cache = new Cache('scripts'.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'].md5(serialize($files)),'.js'); variable
83 $cache->setEvent('JS_CACHE_USE');
88 // check cache age & handle conditional request
89 // This may exit if a cache can be used
90 $cache_ok = $cache->useCache(array('files' => $cache_files));
91 http_cached($cache->cache, $cache_ok);
159 http_cached_finish($cache->cache, $js);
/dokuwiki/inc/
H A Dfetch.functions.php10 * The $cache parameter influences how long files may be kept in caches, the $public parameter
11 * influences if this caching may happen in public proxis or in the browser cache only FS#2734
19 * @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=[]) {
36 // calculate cache times
37 if($cache == -1) {
40 } else if($cache >
[all...]
H A Dparserutils.php38 * Render metadata using the metadata cache logic. The P_GET_METADATA_RENDER_LIMIT
42 * the simple cache mode that metadata needs to be rendered for all pages at once
51 * limited. This can be combined with the simple cache using
135 $cache = new CacheRenderer($id, $file, $format); variable
136 if ($cache->useCache()) {
137 $parsed = $cache->retrieveCache(false);
139 $parsed .= "\n<!-- cachefile {$cache->cache} used -->\n";
144 if ($info['cache'] && $cache
175 $cache = new CacheInstructions($id, $file); global() variable
246 $cache = ($ID == $id); global() variable
334 $cache = ($ID == $id); global() variable
777 $cache = getCacheName($language.$code.$optionsmd5,".code"); global() variable
[all...]
H A Dhttputils.php19 * @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) {
223 // check cache age & handle conditional request
228 http_conditionalRequest(filemtime($cache));
229 if($conf['allowdebug']) header("X-CacheUsed: $cache");
232 if ($conf['gzip_output'] && http_gzip_valid($cache)) {
[all...]
H A Dpageutils.php119 $cache = & $cache_cleanid; variable
121 // check if it's already in the memory cache
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; variable
303 if (isset($cache[$id]) && isset($cache[$id][$rev])) {
304 return $cache[$id][$rev];
324 if (!isset($cache[
[all...]
H A Dcache.php11 class cache extends \dokuwiki\Cache\Cache class
H A Dauth.php449 * @param bool $recache set to true to refresh the cache
483 static $cache = []; variable
485 if (!isset($cache[$cachekey]) || $recache) {
494 $cache[$cachekey] = $ok;
497 return $cache[$cachekey];
509 * @param bool $recache set to true to refresh the cache
748 $cache =& $cache_authname; variable
755 if(!isset($cache[$name][$skip_group])) {
757 $cache[$name][$skip_group] = '@'.preg_replace_callback(
762 $cache[
[all...]
/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
18 public $depends = array(); // 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); variable
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.php13 * @param string $file source file for cache
24 * @return array cache contents
28 $contents = io_readFile($this->cache, false);
33 * cache $instructions
44 return io_saveFile($this->cache, serialize($instructions));
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/
H A DIRI.php793 static $cache; variable
796 $cache = null; variable
799 if (!$cache)
801 $cache = array(); variable
808 elseif (isset($cache[$iri]))
817 $return) = $cache[$iri];
833 $cache[$iri] = array($this->scheme,
878 static $cache; variable
881 $cache = null; variable
884 if (!$cache)
885 $cache = array(); global() variable
1049 static $cache; global() variable
1052 $cache = null; global() variable
1057 $cache = array(); global() variable
[all...]
H A DParser.php381 static $cache = array(); variable
382 if (!isset($cache[$string]))
407 $cache[$string] = array($namespace, $local_name);
411 $cache[$string] = array('', $string);
414 return $cache[$string];
/dokuwiki/inc/ChangeLog/
H A DChangeLog.php16 protected $cache; variable
28 $this->cache =& $cache_revinfo; variable
29 if (!isset($this->cache[$id])) {
30 $this->cache[$id] = array();
89 // check if it's already in the memory cache
90 if (isset($this->cache[$this->id]) && isset($this->cache[$this->id][$rev])) {
91 return $this->cache[$this->id][$rev];
101 // parse and cache changelog lines
105 $this->cache[
[all...]
/dokuwiki/inc/parser/
H A Drenderer.php32 'cache' => true, // may the rendered result cached?
62 $this->info['cache'] = true;
91 $this->info['cache'] = false;
642 * @param string $cache cache|recache|nocache
646 $height = null, $cache = null, $linking = null) {
657 * @param string $cache cache|recache|nocache
661 $height = null, $cache = null, $linking = null) {
672 * @param string $cache cach
[all...]
H A Dxhtml.php1164 * @param string $cache cache|recache|nocache
1170 $height = null, $cache = null, $linking = null, $return = false) {
1179 $link = $this->_getMediaLinkConf($src, $title, $align, $width, $height, $cache, $render);
1187 'cache' => $cache,
1203 'cache' => $cache,
1236 * @param string $cache cache|recach
1903 $cache = null, global() variable
1970 $cache = null, global() variable
[all...]
H A Dmetadata.php599 * @param string $cache cache|recache|nocache
603 $height = null, $cache = null, $linking = null)
620 * @param string $cache cache|recache|nocache
624 $height = null, $cache = null, $linking = null)
/dokuwiki/
H A Dfeed.php34 // the feed is dynamic - we need a cache for each combo
37 $cache = new Cache($key, '.feed'); variable
39 // prepare cache depends
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; variable
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.php504 public $cache = true; variable
507 * @var bool Force SimplePie to fallback to expired cache, if enabled,
522 * @var int Auto-discovery cache duration (in seconds)
533 public $cache_location = './cache';
536 * @var string Function that creates the cache filename
660 * Previously, it was possible to pass in the feed URL along with cache
854 * However, disabling the cache can lead to longer load times.
861 $this->cache = (bool) $enable; variable
865 * SimplePie to continue to fall back to expired cache, if enabled, when
868 * This tells SimplePie to ignore any file errors and fall back to cache
1367 $cache = false; global() variable
1377 $cache = $this->registry->call('Cache', 'get_handler', array($this->cache_location, call_user_func($this->cache_name_function, $url), 'spc')); global() variable
1538 $cache = false; global() variable
1714 $cache = $this->registry->call('Cache', 'get_handler', array($this->cache_location, call_user_func($this->cache_name_function, $file->url), 'spc')); global() variable
[all...]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/
H A DBigInteger.php119 * $cache[self::VARIABLE] tells us whether or not the cached data is still valid.
123 * $cache[self::DATA] contains the cached data.
2033 static $cache = array( variable
2057 if (($key = array_search($m, $cache[self::VARIABLE])) === false) {
2058 $key = count($cache[self::VARIABLE]);
2059 $cache[self::VARIABLE][] = $m;
2072 $cache[self::DATA][] = array(
2077 extract($cache[self::DATA][$key]);
2130 static $cache = array( variable
2146 if (($key = array_search($n, $cache[sel
2283 static $cache = array( global() variable
2339 static $cache = array( global() variable
[all...]

Completed in 51 milliseconds

12