Go to the documentation of this file.
60 return wfSetVar( $this->mContainsOldMagic, $com );
86 $this->mCacheRevisionId = $id;
100 $seconds = (int)$seconds;
102 if ( $this->mCacheExpiry ===
null || $this->mCacheExpiry > $seconds ) {
103 $this->mCacheExpiry = $seconds;
107 if ( $this->mCacheExpiry !==
null && $this->mCacheExpiry <= 0 ) {
108 $this->mCacheTime = -1;
122 global $wgParserCacheExpireTime;
124 if ( $this->mCacheTime < 0 ) {
130 if ( $expire ===
null ) {
131 $expire = $wgParserCacheExpireTime;
133 $expire = min( $expire, $wgParserCacheExpireTime );
137 $expire = min( $expire, 3600 ); # 1 hour
140 if ( $expire <= 0 ) {
162 public function expired( $touched ) {
168 !isset( $this->mVersion ) ||
169 version_compare( $this->mVersion, Parser::VERSION,
"lt" );
186 return $cached !==
null && $id !== $cached;
setContainsOldMagic( $com)
getCacheExpiry()
Returns the number of seconds after which this object should expire.
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff overridable Default is either copyrightwarning or copyrightwarning2 overridable Default is editpage tos summary such as anonymity and the real check
occurs before session is loaded can be modified ID
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
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...
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
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.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
const TS_MW
MediaWiki concatenated string timestamp (YYYYMMDDHHMMSS)
controlled by $wgMainCacheType controlled by $wgParserCacheType controlled by $wgMessageCacheType If you set CACHE_NONE to one of the three control variable
For a write use something like
Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning in
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.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if that
array bool $mUsedOptions
ParserOptions which have been taken into account to produce output or false if not available.