62 if ( $this->mCacheTime ===
'' ) {
63 $this->mCacheTime = MWTimestamp::now();
76 if ( is_string(
$t ) &&
$t !==
'-1' ) {
77 $t = MWTimestamp::convert( TS_MW,
$t );
96 $this->mCacheRevisionId = $id;
113 $seconds = (int)$seconds;
115 if ( $this->mCacheExpiry ===
null || $this->mCacheExpiry > $seconds ) {
116 $this->mCacheExpiry = $seconds;
133 if ( $this->mCacheTime !==
'' && $this->mCacheTime < 0 ) {
139 if ( $expire ===
null ) {
145 if ( $expire <= 0 ) {
170 $expiry = MWTimestamp::convert( TS_MW, MWTimestamp::time() - $this->
getCacheExpiry() );
176 || !isset( $this->mVersion )
177 || version_compare( $this->mVersion, Parser::VERSION,
"lt" );
194 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...
Parser cache specific expiry check.
int null $mCacheRevisionId
Revision ID that was parsed.
string int $mCacheTime
TS_MW timestamp when this object was generated, or -1 for not cacheable.
string null $mVersion
Compatibility check.
updateCacheExpiry( $seconds)
Sets the number of seconds after which this object should expire.
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.
string[] $mUsedOptions
ParserOptions which have been taken into account to produce output.
int null $mCacheExpiry
Seconds after which the object should expire, use 0 for not cacheable.
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.