Public Member Functions | |
| __construct ($memCached) | |
| Setup a cache pathway with a given back-end storage mechanism. | |
| getKey ($article, $popts) | |
| getETag ($article, $popts) | |
| getDirty ($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 61 of file ParserCache.php.
References $wgCacheEpoch, getDirty(), wfDebug(), wfIncrStats(), wfProfileIn(), and wfProfileOut().
| ParserCache::getDirty | ( | $ | article, | |
| $ | popts | |||
| ) |
Definition at line 54 of file ParserCache.php.
References getKey(), and wfDebug().
Referenced by get().
| ParserCache::getETag | ( | $ | article, | |
| $ | popts | |||
| ) |
| ParserCache::getKey | ( | $ | article, | |
| $ | popts | |||
| ) |
Definition at line 29 of file ParserCache.php.
References $wgRequest, ParserOptions::newFromUser(), and wfMemcKey().
Referenced by getDirty(), getETag(), and save().
| ParserCache::save | ( | $ | parserOutput, | |
| $ | article, | |||
| $ | popts | |||
| ) |
Definition at line 98 of file ParserCache.php.
References $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::getOutputFromWikitext(), Article::getParserOutput(), Article::tryDirtyCache(), OutputPage::tryParserCache(), and Article::view().
1.5.9