MediaWiki  REL1_24
ResourceFileCache Class Reference

Resource loader request result caching in the file system. More...

Inheritance diagram for ResourceFileCache:
Collaboration diagram for ResourceFileCache:

List of all members.

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

Detailed Description

Resource loader request result caching in the file system.

Definition at line 29 of file ResourceFileCache.php.


Member Function Documentation

Get the base file cache directory.

Returns:
string

Reimplemented from FileCacheBase.

Definition at line 94 of file ResourceFileCache.php.

References FileCacheBase\baseCacheDirectory().

Item has many recent cache misses.

Returns:
bool

Definition at line 102 of file ResourceFileCache.php.

References FileCacheBase\getMissesRecent(), and FileCacheBase\isCached().

Check if an RL request can be cached.

Caller is responsible for checking if any modules are private.

Parameters:
ResourceLoaderContext$context
Returns:
bool

Definition at line 64 of file ResourceFileCache.php.

References $query, array(), as, ResourceLoaderContext\getRequest(), and global.


Member Data Documentation

ResourceFileCache::$mCacheWorthy [protected]

Definition at line 30 of file ResourceFileCache.php.

Definition at line 33 of file ResourceFileCache.php.


The documentation for this class was generated from the following file: