38 # Time when this object was generated, or -1 for uncacheable. Used in ParserCache.
41 # Seconds after which the object should expire, use 0 for uncacheable. Used in ParserCache.
44 # Revision ID that was parsed
77 $this->mCacheRevisionId = $id;
94 $seconds = (int)$seconds;
96 if ( $this->mCacheExpiry ===
null || $this->mCacheExpiry > $seconds ) {
97 $this->mCacheExpiry = $seconds;
113 if ( $this->mCacheTime < 0 ) {
119 if ( $expire ===
null ) {
125 if ( $expire <= 0 ) {
155 || !isset( $this->mVersion )
156 || version_compare( $this->mVersion, Parser::VERSION,
"lt" );
173 return $cached !==
null && $id !== $cached;
$wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
$wgParserCacheExpireTime
The expiry time for the parser cache, in seconds.
wfSetVar(&$dest, $source, $force=false)
Sets dest to source and returns the original value of dest If source is NULL, it just returns the val...
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
Parser cache specific expiry check.
updateCacheExpiry( $seconds)
Sets the number of seconds after which this object should expire.
array bool $mUsedOptions
ParserOptions which have been taken into account to produce output or false if not available.
setCacheTime( $t)
setCacheTime() sets the timestamp expressing when the page has been rendered.
isDifferentRevision( $id)
Return true if this cached output object is for a different revision of the page.
expired( $touched)
Return true if this cached output object predates the global or per-article cache invalidation timest...
getCacheExpiry()
Returns the number of seconds after which this object should expire.