Public Member Functions | |
__construct (&$memCached) | |
Setup a cache pathway with a given back-end storage mechanism. | |
getKey (&$article, $popts) | |
getETag (&$article, $popts) | |
get (&$article, $popts) | |
save ($parserOutput, &$article, $popts) | |
Static Public Member Functions | |
static & | singleton () |
Get an instance of this object. |
Definition at line 6 of file ParserCache.php.
ParserCache::__construct | ( | &$ | memCached | ) |
Setup a cache pathway with a given back-end storage mechanism.
May be a memcached client or a BagOStuff derivative.
object | $memCached |
Definition at line 25 of file ParserCache.php.
ParserCache::get | ( | &$ | article, | |
$ | popts | |||
) |
Definition at line 54 of file ParserCache.php.
References $fname, $key, $wgCacheEpoch, getKey(), wfDebug(), wfIncrStats(), wfProfileIn(), and wfProfileOut().
ParserCache::getETag | ( | &$ | article, | |
$ | popts | |||
) |
ParserCache::getKey | ( | &$ | article, | |
$ | popts | |||
) |
Definition at line 29 of file ParserCache.php.
References $key, $user, $wgRequest, ParserOptions::newFromUser(), and wfMemcKey().
ParserCache::save | ( | $ | parserOutput, | |
&$ | article, | |||
$ | popts | |||
) |
Definition at line 95 of file ParserCache.php.
References $key, $wgParserCacheExpireTime, getKey(), wfDebug(), and wfTimestampNow().
static& ParserCache::singleton | ( | ) | [static] |
Get an instance of this object.
Definition at line 10 of file ParserCache.php.
References $parserMemc.
Referenced by OutputPage::addPrimaryWikiText(), Article::editUpdates(), ApiParse::execute(), Article::outputWikiText(), OutputPage::tryParserCache(), and Article::view().