MediaWiki
REL1_24
|
Resource loader request result caching in the file system. More...
Public Member Functions | |
isCacheWorthy () | |
Item has many recent cache misses. | |
Static Public Member Functions | |
static | newFromContext (ResourceLoaderContext $context) |
Construct an ResourceFileCache from a context. | |
static | useFileCache (ResourceLoaderContext $context) |
Check if an RL request can be cached. | |
Public Attributes | |
const | MISS_THRESHOLD = 360 |
Protected Member Functions | |
cacheDirectory () | |
Get the base file cache directory. | |
Protected Attributes | |
$mCacheWorthy |
Resource loader request result caching in the file system.
Definition at line 29 of file ResourceFileCache.php.
ResourceFileCache::cacheDirectory | ( | ) | [protected] |
Get the base file cache directory.
Reimplemented from FileCacheBase.
Definition at line 94 of file ResourceFileCache.php.
References FileCacheBase\baseCacheDirectory().
Item has many recent cache misses.
Definition at line 102 of file ResourceFileCache.php.
References FileCacheBase\getMissesRecent(), and FileCacheBase\isCached().
static ResourceFileCache::newFromContext | ( | ResourceLoaderContext $ | context | ) | [static] |
Construct an ResourceFileCache from a context.
ResourceLoaderContext | $context |
Definition at line 40 of file ResourceFileCache.php.
References $cache, ResourceLoaderContext\getHash(), ResourceLoaderContext\getModules(), and ResourceLoaderContext\getOnly().
static ResourceFileCache::useFileCache | ( | ResourceLoaderContext $ | context | ) | [static] |
Check if an RL request can be cached.
Caller is responsible for checking if any modules are private.
ResourceLoaderContext | $context |
Definition at line 64 of file ResourceFileCache.php.
References $query, array(), as, ResourceLoaderContext\getRequest(), and global.
ResourceFileCache::$mCacheWorthy [protected] |
Definition at line 30 of file ResourceFileCache.php.
const ResourceFileCache::MISS_THRESHOLD = 360 |
Definition at line 33 of file ResourceFileCache.php.