Lines Matching full:cache
3 * 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
58 * Get cache file path
60 * @param string $key Cache key
64 return self::getCacheDir() . $key . '.cache';
74 * @return array|null Cached events or null if cache miss/expired
79 // Check memory cache first
90 // Check if cache is expired
108 // Store in memory cache
126 // Store in memory cache
147 * Invalidate cache for a specific month
156 // Clear memory cache
159 // Delete cache file
167 * Invalidate cache for a namespace (all months)
173 $pattern = self::getCacheDir() . "events_{$ns}_*.cache";
179 // Clear matching memory cache entries
192 $pattern = self::getCacheDir() . "events_*.cache";
198 // Clear memory cache
203 * Get cache statistics
205 * @return array Cache stats
209 $files = glob($cacheDir . "*.cache");
237 * Clean up expired cache files
244 $files = glob($cacheDir . "*.cache");