|
MediaWiki REL1_39
|
ResourceLoader request result caching in the file system. More...


Public Member Functions | |
| isCacheWorthy () | |
| Item has many recent cache misses. | |
Public Member Functions inherited from FileCacheBase | |
| cacheTimestamp () | |
| Get the last-modified timestamp of the cache file. | |
| clearCache () | |
| Clear the cache for this page. | |
| fetchText () | |
| Get the uncompressed text from the cache. | |
| getMissesRecent () | |
| Roughly gets the cache misses in the last hour by unique visitors. | |
| incrMissesRecent (WebRequest $request) | |
| Roughly increments the cache misses in the last hour by unique visitors. | |
| isCached () | |
| Check if the cache file exists. | |
| isCacheGood ( $timestamp='') | |
| Check if up to date cache file exists. | |
| saveText ( $text) | |
| Save and compress text to the cache. | |
Static Public Member Functions | |
| static | newFromContext (RL\Context $context) |
| Construct an ResourceFileCache from a context. | |
| static | useFileCache (RL\Context $context) |
| Check if an RL request can be cached. | |
Protected Member Functions | |
| cacheDirectory () | |
| Get the base file cache directory. | |
Protected Member Functions inherited from FileCacheBase | |
| __construct () | |
| baseCacheDirectory () | |
| Get the base file cache directory. | |
| cacheMissKey (BagOStuff $cache) | |
| cachePath () | |
| Get the path to the cache file. | |
| checkCacheDirs () | |
| Create parent directors of $this->cachePath() | |
| hashSubdirectory () | |
| Return relative multi-level hash subdirectory (with trailing slash) or the empty string if not $wgFileCacheDepth. | |
| typeSubdirectory () | |
| Get the cache type subdirectory (with trailing slash) An extending class could use that method to alter the type -> directory mapping. | |
| useGzip () | |
| Check if the cache is gzipped. | |
Protected Attributes | |
| $mCacheWorthy | |
Protected Attributes inherited from FileCacheBase | |
| bool null | $mCached |
| lazy loaded | |
| $mExt = 'cache' | |
| $mFilePath | |
| $mKey | |
| $mType = 'object' | |
| $mUseGzip | |
| ServiceOptions | $options |
ResourceLoader request result caching in the file system.
Definition at line 34 of file ResourceFileCache.php.
|
protected |
Get the base file cache directory.
Reimplemented from FileCacheBase.
Definition at line 107 of file ResourceFileCache.php.
References FileCacheBase\baseCacheDirectory().
| ResourceFileCache::isCacheWorthy | ( | ) |
Item has many recent cache misses.
Definition at line 115 of file ResourceFileCache.php.
References FileCacheBase\getMissesRecent(), and FileCacheBase\isCached().
|
static |
Construct an ResourceFileCache from a context.
| RL\\Context | $context |
Definition at line 45 of file ResourceFileCache.php.
References $cache, and $modules.
Referenced by MediaWiki\ResourceLoader\ResourceLoader\respond().
|
static |
Check if an RL request can be cached.
Caller is responsible for checking if any modules are private.
| RL\\Context | $context |
Definition at line 71 of file ResourceFileCache.php.
Referenced by MediaWiki\ResourceLoader\ResourceLoader\respond().
|
protected |
Definition at line 35 of file ResourceFileCache.php.