Home
last modified time | relevance | path

Searched full:cache (Results 1 – 25 of 2098) sorted by relevance

12345678910>>...84

/plugin/diagramsnet/lib/WEB-INF/lib/
Dcache-api-1.1.1.jar ... integration/ javax/cache/processor/ javax/cache/management/ javax/cache/annotation/ javax ...
/plugin/struct/action/
H A Dcache.php39 * For pages potentially containing schema data, refresh the cache when schema data has been
49 /** @var \cache_parser $cache */
50 $cache = $event->data;
51 if ($cache->mode != 'xhtml') return true;
52 if (!$cache->page) return true; // not a page cache
55 if (!$assignments->getPageAssignments($cache->page)) return true; // no struct here
57 $cache->depends['files'][] = self::getSchemaRefreshFile();
63 * to the cache dependencies
74 /** @var \cache_parser $cache */
75 $cache = $event->data;
[all …]
/plugin/externalembed/helper/
DcacheInterface.php15 * Get the data stored in the cache file e.g. thumbnail encoded data
17 * @param $cache_id string the id of the cache
21 $cache = new cache_externalembed($cache_id);
22 return json_decode($cache->retrieveCache(), true);
26 * Updates the E tag of the cache file to be the current time
27 * @param $cache_id string the id of the cache
30 $cache = new cache_externalembed($cache_id);
31 $cache->storeETag(md5(time()));
35 * Return true if the cache is still fresh, otherwise return false
36 * @param $cache_id string the cache id
[all …]
/plugin/structat/action/
Dcache.php28 * to the cache dependencies
39 /** @var \cache_parser $cache */
40 $cache = $event->data;
41 if ($cache->mode != 'xhtml') return true;
42 if (!$cache->page) return true; // not a page cache
44 $meta = p_get_metadata($cache->page, 'plugin struct');
46 // dynamic renders should never overwrite the default page cache
48 // influence if a cache is used, not that it will be written
57 $cache->key = substr($cache->key, 0, -strlen($user_key));
60 if (substr($cache->key, -strlen('dynamic')) != 'dynamic') {
[all …]
/plugin/authgooglesheets/vendor/psr/cache/src/
DCacheItemPoolInterface.php3 namespace Psr\Cache;
8 * The primary purpose of Cache\CacheItemPoolInterface is to accept a key from
9 * the Calling Library and return the associated Cache\CacheItemInterface object.
10 * It is also the primary point of interaction with the entire cache collection.
17 * Returns a Cache Item representing the specified key.
20 * a cache miss. It MUST NOT return null.
23 * The key for which to return the corresponding Cache Item.
26 * If the $key string is not a legal value a \Psr\Cache\InvalidArgumentException
30 * The corresponding Cache Item.
35 * Returns a traversable set of cache items.
[all …]
DCacheItemInterface.php3 namespace Psr\Cache;
6 * CacheItemInterface defines an interface for interacting with objects inside a cache.
10 * Cache\CacheItemPoolInterface object.
12 * The Cache\CacheItemInterface object encapsulates the storage and retrieval of
13 * cache items. Each Cache\CacheItemInterface is generated by a
14 * Cache\CacheItemPoolInterface object, which is responsible for any required
16 * Cache\CacheItemInterface objects MUST be able to store and retrieve any type
27 * Returns the key for the current cache item.
33 * The key string for this cache item.
38 * Retrieves the value of the item from the cache associated with this object's key.
[all …]
/plugin/poldek/
Dhelper.php21 * Path to package list cache file
23 * @var string $cache
25 private $cache; variable in helper_plugin_poldek
31 * We create two cache objects, one for updating indexes, which is mtime based
35 * Without force, cache is attempted to be used, even if it's stale
41 if ($this->cache) {
47 $idx_cache = new cache($this->getPluginName(), '.idx');
48 $pkg_cache = new cache($this->getPluginName(), '.txt');
49 $cache_exists = file_exists($pkg_cache->cache);
54 // cache is ok, if it exists and is not empty and does not contain errors
[all …]
/plugin/combo/ComboStrap/
H A DIFetcherAbs.php14 * This is why there is a cache attribute - this is the cache of the generated file
26 * Cache
28 * * cache
32 public const CACHE_KEY = 'cache';
33 public const CACHE_DEFAULT_VALUE = "cache";
57 * The cache
113 $cache = $tagAttributes->getValueAndRemove(self::CACHE_KEY);
114 if ($cache !== null) {
115 $this->setRequestedCache($cache);
123 * @return string $cache - one of {@link FetcherCache::CACHE_KEY}
[all …]
H A DMarkupCacheDependencies.php6 use dokuwiki\Cache\CacheParser;
7 use dokuwiki\Cache\CacheRenderer;
14 * Manage the cache dependencies for a slot level (not instructions cache).
18 * Cache dependencies are used:
19 * * to generate the cache key output
20 * * to add cache validity dependency such as requested page,
22 * For cache key generation, this is mostly used on
23 …in_combo_pageexplorer navigation pane} for different namespace (ie there is one cache by namespace)
35 * The real scope value is then calculated before retrieving the cache
45 * output location of the cache
[all …]
H A DFetcherCache.php6 use dokuwiki\Cache\Cache; alias
9 * Class Cache
10 * A wrapper around {@link \dokuwiki\Cache\Cache}
13 * to create the cache file
18 const CANONICAL = "fetcher:cache";
22 * @var Cache
24 private Cache $fileCache;
33 …* @param String[] $keys - extra cache keys that are not in the url because they are retrieved from…
42 * Cache Key Construction
48 $this->fileCache = new Cache($cacheKey, ".{$fetcher->getMime()->getExtension()}");
[all …]
/plugin/epub/
Dhelper.php7 private $cache; variable in helper_plugin_epub
9 $this->script_file = metaFN('epub:cache', '.ser');
10 $this->cache = unserialize(io_readFile($this->script_file,false));
11 if(!$this->cache) $this->cache = array();
25 if(isset($this->cache[$md5])) return true;
35 unset($this->cache[$md5]);
36 if(isset($this->cache['current_books'][$md5])) {
37 unset($this->cache['current_books'][$md5]);
39 io_saveFile($this->script_file,serialize($this->cache));
43 $epub = $this->cache['current_books'][$md5]['epub'];
[all …]
/plugin/asciidocjs/node_modules/lodash/
Dmemoize.js8 * provided, it determines the cache key for storing the result based on the
10 * provided to the memoized function is used as the map cache key. The `func`
13 * **Note:** The cache is exposed as the `cache` property on the memoized
14 * function. Its creation may be customized by replacing the `_.memoize.Cache`
24 * @param {Function} [resolver] The function to resolve the cache key.
42 * // Modify the result cache.
43 * values.cache.set(object, ['a', 'b']);
47 * // Replace `_.memoize.Cache`.
48 * _.memoize.Cache = WeakMap;
57 cache = memoized.cache;
[all …]
/plugin/combo/vendor/salesforce/handlebars-php/src/Handlebars/Cache/
H A DDummy.php3 * A dummy array cache
15 namespace Handlebars\Cache;
16 use Handlebars\Cache; alias
18 class Dummy implements Cache
20 private $cache = []; variable in Handlebars\\Cache\\Dummy
23 * Get cache for $name if exist.
25 * @param string $name Cache id
27 * @return mixed data on hit, boolean false on cache not found
31 if (array_key_exists($name, $this->cache)) {
32 return $this->cache[$name];
[all …]
H A DDisk.php3 * A flat-file filesystem cache.
17 namespace Handlebars\Cache;
18 use Handlebars\Cache; alias
22 class Disk implements Cache
30 * Construct the disk cache.
32 * @param string $path Filesystem path to the disk cache location
42 throw new InvalidArgumentException('Must specify disk cache path');
47 throw new RuntimeException('Could not create cache file path');
57 * Gets the full disk path for a given cache item's file,
58 * taking into account the cache path, optional prefix,
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Cache/
DFilesystemTest.php12 use Twig\Cache\FilesystemCache;
20 private $cache; variable in Twig_Tests_Cache_FilesystemTest
27 $this->cache = new FilesystemCache($this->directory);
39 $key = $this->directory.'/cache/cachefile.php';
49 $this->cache->load($key);
56 $key = $this->directory.'/cache/cachefile.php';
60 $this->cache->load($key);
67 $key = $this->directory.'/cache/cachefile.php';
73 $this->cache->write($key, $content);
82 * @expectedExceptionMessage Unable to create the cache directory
[all …]
/plugin/randominc/
Daction.php6 * Action plugin component, for cache validity determination
34 * prepare the cache object for default _useCache action
37 $cache =& $event->data;
40 if (!isset($cache->page)) return;
41 if (!isset($cache->mode) || !in_array($cache->mode, $this->supportedModes)) return;
45 $expire = $this->_inclusion_check($cache->page, $key, $depends);
48 //$debug[] = compact('key','expire','depends','cache');
53 // mark the cache as being modified by the include plugin
54 $cache->include = true;
56 …// set new cache key & cache name - now also dependent on included page ids and their ACL_READ sta…
[all …]
/plugin/findologicxmlexport/vendor/jms/metadata/src/Cache/
DDoctrineCacheAdapter.php5 namespace Metadata\Cache;
7 use Doctrine\Common\Cache\Cache; alias
20 * @var Cache
22 private $cache; variable in Metadata\\Cache\\DoctrineCacheAdapter
24 public function __construct(string $prefix, Cache $cache) argument
27 $this->cache = $cache;
35 $cache = $this->cache->fetch($this->prefix . $class);
36 return false === $cache ? null : $cache;
44 $this->cache->save($this->prefix . $metadata->name, $metadata);
52 $this->cache->delete($this->prefix . $class);
/plugin/structpublish/action/
H A Dcache.php6 use dokuwiki\Cache\CacheParser;
28 * For pages containing an aggregation, add structpublish flag to cache key
36 /** @var CacheParser $cache */
37 $cache = $event->data;
38 if ($cache->mode != 'xhtml') return true;
39 if (!$cache->page) return true; // not a page cache
41 $meta = p_get_metadata($cache->page, 'plugin struct');
44 $cache->key .= ';' . helper_plugin_structpublish_db::userHasRole($cache->page, '', []);
46 // rebuild cache name
47 $cache->cache = getCacheName($cache->key, $cache->ext);
/plugin/webcode/_test/
Ddokuwiki.test.php6 * Most of the test are cache test that are no more used
25 // The cache system is change unfortunately
28 $conf['cachedir']=DOKU_INC.'/data/cache';
39 * Dokuwiki Test to see if I can cache and get cached data
44 $cache = new cache($this->cacheKey, SELF::extension);
45 $cache->storeCache(SELF::storedContent);
46 …$this->assertNotNull($cache->cache, "The cache file name must be not NULL. It was (+".$cache->cach…
47 …ssertTrue(strpos($cache->cache,DOKU_INC) !== false, "The cache file path must contains DOKU_INC ("…
55 $cache = new cache($this->cacheKey, SELF::extension);
57 $content = $cache->retrieveCache();
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Cache/
DExpiringCache.php12 namespace Assetic\Cache;
15 * Adds expiration to a cache backend.
21 private $cache; variable in Assetic\\Cache\\ExpiringCache
24 public function __construct(CacheInterface $cache, $lifetime) argument
26 $this->cache = $cache;
32 if ($this->cache->has($key)) {
33 if (time() < $this->cache->get($key.'.expires')) {
37 $this->cache->remove($key.'.expires');
38 $this->cache->remove($key);
46 return $this->cache->get($key);
[all …]
/plugin/calendar/classes/
DEventCache.php3 * Calendar Plugin - Event Cache
17 /** @var int Default cache TTL in seconds (5 minutes) */
20 /** @var string Cache directory relative to DokuWiki data */
21 private const CACHE_DIR = 'cache/calendar/';
23 /** @var array In-memory cache for current request */
26 /** @var string|null Base cache directory path */
30 * Get the cache directory path
32 * @return string Cache directory path
45 * Generate cache key for a month's events
50 * @return string Cache key
[all …]
/plugin/ghissues/helper/
DapiCacheInterface.php24 …'desc' => 'Takes an api URL, checks local cache for up-to-date, then returns cache path for use …
32 … 'desc' => 'returns true if the cache is up-to-date. Includes API call if required',
35 'cache (optional)' => 'class'
41 … 'desc' => 'makes the API call given by apiUrl. Saves result in a cache after formatting',
44 'cache (optional)' => 'class'
58 'desc' => 'returns rendered output from an API request, using cache if valid',
66 …// Master cache checker. First checks if the cache expired, then checks if the page is older than…
68 $cache = new cache_ghissues_api($apiURL);
69 $this->checkCacheFreshness($apiURL, $cache);
70 return ($cache->cache);
[all …]
/plugin/pagequery/
Daction.php19 * Check for pages changes and eventually purge cache.
29 /** @var cache_parser $cache */
30 $cache = $event->data;
32 if (!isset($cache->page)) {
35 //purge only xhtml cache
36 if ($cache->mode !== "xhtml") {
47 //Cache per user
52 //Cache per groups
59 $cache->key .= "#" . $newkey;
60 $cache->cache = getCacheName($cache->key, $cache->ext);
[all …]
/plugin/authgooglesheets/vendor/google/auth/src/
DApplicationDefaultCredentials.php31 use Psr\Cache\CacheItemPoolInterface;
84 * @param array<mixed> $cacheConfig configuration for the cache when it's present
85 * @param CacheItemPoolInterface $cache A cache implementation, may be
94 CacheItemPoolInterface $cache = null argument
96 $creds = self::getCredentials($scope, $httpHandler, $cacheConfig, $cache);
112 * @param array<mixed> $cacheConfig configuration for the cache when it's present
113 * @param CacheItemPoolInterface $cache A cache implementation, may be
124 CacheItemPoolInterface $cache = null, argument
127 $creds = self::getCredentials($scope, $httpHandler, $cacheConfig, $cache, $quotaProject);
139 * @param array<mixed> $cacheConfig configuration for the cache when it's present
[all …]
/plugin/jplayer/vendor/mustache/mustache/src/Mustache/Cache/
DFilesystemCache.php13 * Mustache Cache filesystem implementation.
17 * $cache = new Mustache_Cache_FilesystemCache(dirname(__FILE__).'/cache');
18 * $cache->cache($className, $compiledSource);
28 * Filesystem cache constructor.
31 …* @param int $fileMode Override default permissions for cache files. Defaults to using the syst…
40 * Load the class from cache using `require_once`.
59 * Cache and load the compiled class.
64 public function cache($key, $value) function in Mustache_Cache_FilesystemCache
70 'Writing to template cache: "{fileName}"',
79 * Build the cache filename.
[all …]

12345678910>>...84