HTMLFileCache Class Reference
[Cache]

Handles talking to the file cache, putting stuff in and taking it back out. More...

List of all members.

Public Member Functions

 __construct (&$title, $type= 'view')
 fileCacheName ()
 isFileCached ()
 fileCacheTime ()
 isFileCacheGood ($timestamp= '')
 useGzip ()
 fetchRawText ()
 fetchPageText ()
 loadFromFileCache ()
 saveToFileCache ($text)

Static Public Member Functions

static useFileCache ()
 Check if pages can be cached for this request/user.
static clearFileCache ($title)

Public Attributes

 $mTitle
 $mFileCache
 $mType

Protected Member Functions

 checkCacheDirs ()


Detailed Description

Handles talking to the file cache, putting stuff in and taking it back out.

Mostly called from Article.php, also from DatabaseFunctions.php for the emergency abort/fallback to cache.

Global options that affect this module:

Definition at line 23 of file HTMLFileCache.php.


Constructor & Destructor Documentation

HTMLFileCache::__construct ( &$  title,
type = 'view' 
)

Definition at line 26 of file HTMLFileCache.php.

References $title, and fileCacheName().


Member Function Documentation

HTMLFileCache::checkCacheDirs (  )  [protected]

Definition at line 162 of file HTMLFileCache.php.

References $filename, fileCacheName(), and wfMkdirParents().

Referenced by saveToFileCache().

static HTMLFileCache::clearFileCache ( title  )  [static]

HTMLFileCache::fetchPageText (  ) 

Definition at line 127 of file HTMLFileCache.php.

References fetchRawText(), fileCacheName(), and useGzip().

HTMLFileCache::fetchRawText (  ) 

Definition at line 123 of file HTMLFileCache.php.

References fileCacheName().

Referenced by fetchPageText().

HTMLFileCache::fileCacheName (  ) 

HTMLFileCache::fileCacheTime (  ) 

Definition at line 68 of file HTMLFileCache.php.

References fileCacheName(), and wfTimestamp().

Referenced by isFileCacheGood().

HTMLFileCache::isFileCached (  ) 

Definition at line 63 of file HTMLFileCache.php.

References fileCacheName().

Referenced by isFileCacheGood().

HTMLFileCache::isFileCacheGood ( timestamp = ''  ) 

Definition at line 105 of file HTMLFileCache.php.

References $wgCacheEpoch, fileCacheTime(), isFileCached(), and wfDebug().

HTMLFileCache::loadFromFileCache (  ) 

HTMLFileCache::saveToFileCache ( text  ) 

static HTMLFileCache::useFileCache (  )  [static]

Check if pages can be cached for this request/user.

Returns:
bool

Definition at line 76 of file HTMLFileCache.php.

References $wgContLang, $wgLang, $wgRequest, $wgShowIPinHeader, $wgUseFileCache, and $wgUser.

Referenced by Article::isFileCacheable(), and RawPage::view().

HTMLFileCache::useGzip (  ) 

Definition at line 117 of file HTMLFileCache.php.

References $wgUseGzip.

Referenced by fetchPageText(), fileCacheName(), loadFromFileCache(), and saveToFileCache().


Member Data Documentation

HTMLFileCache::$mFileCache

Definition at line 24 of file HTMLFileCache.php.

HTMLFileCache::$mTitle

Definition at line 24 of file HTMLFileCache.php.

HTMLFileCache::$mType

Definition at line 24 of file HTMLFileCache.php.


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

Generated on Sat Apr 30 22:57:39 2011 for MediaWiki by  doxygen 1.5.9