MediaWiki  REL1_19
ResourceFileCache Class Reference
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

Definition at line 7 of file ResourceFileCache.php.


Member Function Documentation

Get the base file cache directory.

Returns:
string

Reimplemented from FileCacheBase.

Definition at line 70 of file ResourceFileCache.php.

References FileCacheBase\baseCacheDirectory().

Here is the call graph for this function:

Item has many recent cache misses.

Returns:
bool

Definition at line 78 of file ResourceFileCache.php.

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

Here is the call graph for this function:

Construct an ResourceFileCache from a context.

Parameters:
$contextResourceLoaderContext
Returns:
ResourceFileCache

Definition at line 18 of file ResourceFileCache.php.

References ResourceLoaderContext\getHash(), ResourceLoaderContext\getModules(), and ResourceLoaderContext\getOnly().

Referenced by ResourceLoader\respond().

Here is the call graph for this function:

Here is the caller graph for this function:

Check if an RL request can be cached.

Caller is responsible for checking if any modules are private.

Parameters:
$contextResourceLoaderContext
Returns:
bool

Definition at line 42 of file ResourceFileCache.php.

References $wgDefaultSkin, $wgLanguageCode, $wgUseFileCache, and ResourceLoaderContext\getRequest().

Referenced by ResourceLoader\respond().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

ResourceFileCache::$mCacheWorthy [protected]

Definition at line 8 of file ResourceFileCache.php.

Definition at line 11 of file ResourceFileCache.php.


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