MediaWiki REL1_39
|
Read-only interface for metadata about a ParserCache entry. More...
Public Member Functions | |
getCacheExpiry () | |
Returns the number of seconds after which this object should expire. | |
getCacheRevisionId () | |
getCacheTime () | |
Returns the timestamp when the output was cached or -1 for uncacheable for legacy reasons. | |
getUsedOptions () | |
Returns the options from its ParserOptions which have been taken into account to produce the output. | |
Read-only interface for metadata about a ParserCache entry.
Definition at line 9 of file ParserCacheMetadata.php.
MediaWiki\Parser\ParserCacheMetadata::getCacheExpiry | ( | ) |
Returns the number of seconds after which this object should expire.
This method is used by ParserCache to determine how long the ParserOutput can be cached. The timestamp of expiry can be calculated by adding getCacheExpiry() to getCacheTime(). The value returned by getCacheExpiry is smaller or equal to the smallest number that was provided to a call of ParserOutput::updateCacheExpiry(), and smaller or equal to the value of $wgParserCacheExpireTime.
Implemented in CacheTime.
MediaWiki\Parser\ParserCacheMetadata::getCacheRevisionId | ( | ) |
Implemented in CacheTime.
MediaWiki\Parser\ParserCacheMetadata::getCacheTime | ( | ) |
MediaWiki\Parser\ParserCacheMetadata::getUsedOptions | ( | ) |
Returns the options from its ParserOptions which have been taken into account to produce the output.
Implemented in CacheTime.