Home
last modified time | relevance | path

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

12

/dokuwiki/vendor/simplepie/simplepie/src/Cache/
H A DPsr16.php52 * Caches data into a PSR-16 cache implementation
61 * PSR-16 cache implementation
65 private $cache; variable in SimplePie\\Cache\\Psr16
68 * PSR-16 cache implementation
70 * @param CacheInterface $cache
72 public function __construct(CacheInterface $cache) argument
74 $this->cache = $cache;
78 * Fetches a value from the cache.
85 * @param string $key The unique key of this item in the cache
[all...]
H A DRedis.php71 protected $cache; variable in SimplePie\\Cache\\Redis
88 * Create a new cache object
91 * @param string $name Unique ID for the cache
96 //$this->cache = \flow\simple\cache\Redis::getRedisClientInstance();
106 $this->cache = $redis;
121 * @param NativeRedis $cache
123 public function setRedisClient(NativeRedis $cache) argument
125 $this->cache = $cache;
[all...]
H A DBaseDataCache.php62 private $cache; variable in SimplePie\\Cache\\BaseDataCache
64 public function __construct(Base $cache) argument
66 $this->cache = $cache;
70 * Fetches a value from the cache.
77 * @param string $key The unique key of this item in the cache.
80 * @return array|mixed The value of the item from the cache, or $default in case of cache miss.
87 $data = $this->cache->load();
93 // ignore data if internal cache expiratio
[all...]
H A DMemcache.php71 protected $cache; variable in SimplePie\\Cache\\Memcache
88 * Create a new cache object
91 * @param string $name Unique ID for the cache
108 $this->cache = new NativeMemcache();
109 $this->cache->addServer($this->options['host'], (int) $this->options['port']);
113 * Save data to the cache
115 * @param array|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
123 return $this->cache->set($this->name, serialize($data), MEMCACHE_COMPRESSED, (int) $this->options['extras']['timeout']);
127 * Retrieve the data saved to the cache
[all...]
H A DMemcached.php71 protected $cache; variable in SimplePie\\Cache\\Memcached
86 * Create a new cache object
88 * @param string $name Unique ID for the cache
105 $this->cache = new NativeMemcached();
106 $this->cache->addServer($this->options['host'], (int)$this->options['port']);
110 * Save data to the cache
111 * @param array|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
124 * Retrieve the data saved to the cache
129 $data = $this->cache
[all...]
/dokuwiki/lib/exe/
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);
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...]
/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...]
/dokuwiki/inc/
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 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...]
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 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 Dcache.php12 class cache extends NewCache
11 class cache extends \dokuwiki\Cache\Cache global() class
/dokuwiki/inc/Cache/
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));
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...]
/dokuwiki/inc/ChangeLog/
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;
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 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...]
/dokuwiki/vendor/simplepie/simplepie/src/
H A DIRI.php717 static $cache;
719 $cache = null;
722 if (!$cache) {
723 $cache = [];
728 } elseif (isset($cache[$iri])) {
738 ] = $cache[$iri];
754 $cache[$iri] = [
797 static $cache;
799 $cache = null;
802 if (!$cache) {
[all...]
H A DSanitize.php80 public $cache_location = './cache';
96 private $cache = null; variable in SimplePie\\Sanitize
136 public function pass_cache_data($enable_cache = true, $cache_location = './cache', $cache_name_function = 'md5', $cache_class = 'SimplePie\Cache', DataCache $cache = null) argument
164 if ($cache !== null) {
165 $this->cache = $cache;
416 // If image handling (caching, etc.) is enabled, cache and rewrite all the image tags.
423 $cache = $this->get_cache($image_url);
425 if ($cache
[all...]
H A DSimplePie.php516 private $cache = null; variable in SimplePie\\SimplePie
525 * @var bool Force SimplePie to fallback to expired cache, if enabled,
540 * @var int Auto-discovery cache duration (in seconds)
551 public $cache_location = './cache';
554 * @var string Function that creates the cache filename
685 * Previously, it was possible to pass in the feed URL along with cache
872 * However, disabling the cache can lead to longer load times.
883 * Set a PSR-16 implementation as cache
885 * @param CacheInterface $psr16cache The PSR-16 cache implementation
889 public function set_cache(CacheInterface $cache) argument
1712 fetch_data(& $cache) global() argument
[all...]
/dokuwiki/inc/parser/
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...]
/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/vendor/simplepie/simplepie/src/Parse/
H A DDate.php603 static $cache;
604 if (!isset($cache[get_class($this)])) {
609 $cache[get_class($this)][] = $method;
614 foreach ($cache[get_class($this)] as $method) {

12