MediaWiki
REL1_19
|
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 |
Definition at line 7 of file ResourceFileCache.php.
ResourceFileCache::cacheDirectory | ( | ) | [protected] |
Get the base file cache directory.
Reimplemented from FileCacheBase.
Definition at line 70 of file ResourceFileCache.php.
References FileCacheBase\baseCacheDirectory().
Item has many recent cache misses.
Definition at line 78 of file ResourceFileCache.php.
References FileCacheBase\getMissesRecent(), and FileCacheBase\isCached().
static ResourceFileCache::newFromContext | ( | ResourceLoaderContext $ | context | ) | [static] |
Construct an ResourceFileCache from a context.
$context | ResourceLoaderContext |
Definition at line 18 of file ResourceFileCache.php.
References ResourceLoaderContext\getHash(), ResourceLoaderContext\getModules(), and ResourceLoaderContext\getOnly().
Referenced by ResourceLoader\respond().
static ResourceFileCache::useFileCache | ( | ResourceLoaderContext $ | context | ) | [static] |
Check if an RL request can be cached.
Caller is responsible for checking if any modules are private.
$context | ResourceLoaderContext |
Definition at line 42 of file ResourceFileCache.php.
References $wgDefaultSkin, $wgLanguageCode, $wgUseFileCache, and ResourceLoaderContext\getRequest().
Referenced by ResourceLoader\respond().
ResourceFileCache::$mCacheWorthy [protected] |
Definition at line 8 of file ResourceFileCache.php.
const ResourceFileCache::MISS_THRESHOLD = 360 |
Definition at line 11 of file ResourceFileCache.php.