Go to the documentation of this file.
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 < 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;
getCacheExpiry()
Returns the number of seconds after which this object should expire.
Parser cache specific expiry check.
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...
int null $mCacheRevisionId
Revision ID that was parsed.
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.
$wgParserCacheExpireTime
The expiry time for the parser cache, in seconds.
int null $mCacheExpiry
Seconds after which the object should expire, use 0 for not cacheable.
string int $mCacheTime
TS_MW timestamp when this object was generated, or -1 for not cacheable.
$wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
expired( $touched)
Return true if this cached output object predates the global or per-article cache invalidation timest...
updateCacheExpiry( $seconds)
Sets the number of seconds after which this object should expire.
string null $mVersion
Compatibility check.
string[] $mUsedOptions
ParserOptions which have been taken into account to produce output.