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 22 of file HTMLFileCache.php.


Constructor & Destructor Documentation

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

Definition at line 25 of file HTMLFileCache.php.

References $title, $type, and fileCacheName().


Member Function Documentation

HTMLFileCache::checkCacheDirs (  )  [protected]

Definition at line 153 of file HTMLFileCache.php.

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

Referenced by saveToFileCache().

static HTMLFileCache::clearFileCache ( title  )  [static]

HTMLFileCache::fetchPageText (  ) 

Definition at line 118 of file HTMLFileCache.php.

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

HTMLFileCache::fetchRawText (  ) 

Definition at line 114 of file HTMLFileCache.php.

References fileCacheName().

Referenced by fetchPageText().

HTMLFileCache::fileCacheName (  ) 

HTMLFileCache::fileCacheTime (  ) 

Definition at line 58 of file HTMLFileCache.php.

References fileCacheName(), and wfTimestamp().

Referenced by isFileCacheGood().

HTMLFileCache::isFileCached (  ) 

Definition at line 53 of file HTMLFileCache.php.

References fileCacheName().

Referenced by isFileCacheGood().

HTMLFileCache::isFileCacheGood ( timestamp = ''  ) 

Definition at line 95 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 66 of file HTMLFileCache.php.

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

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

HTMLFileCache::useGzip (  ) 

Definition at line 108 of file HTMLFileCache.php.

References $wgUseGzip.

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


Member Data Documentation

HTMLFileCache::$mFileCache

Definition at line 23 of file HTMLFileCache.php.

HTMLFileCache::$mTitle

Definition at line 23 of file HTMLFileCache.php.

HTMLFileCache::$mType

Definition at line 23 of file HTMLFileCache.php.


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

Generated on Sat Sep 5 02:08:38 2009 for MediaWiki by  doxygen 1.5.9