Hi I am curious as to how mediawiki sites are dealing with caching of pages that contain time sensitive magic words that change from time to time. e.g. CURRENTTIME.
Does mediawiki software send a different expiration time for such pages? I have tested myself and haven't seen a difference.
Thanks
On 23/02/12 17:55, Sezgin Sucu wrote:
Hi I am curious as to how mediawiki sites are dealing with caching of pages that contain time sensitive magic words that change from time to time. e.g. CURRENTTIME.
Does mediawiki software send a different expiration time for such pages? I have tested myself and haven't seen a difference.
Thanks
The parser cache expires much earlier in that case. Although we don't reduce it to lower than one hour due to the presence of such words.
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/MagicWord.ph...
Le 23/02/12 22:38, Platonides a écrit :
The parser cache expires much earlier in that case. Although we don't reduce it to lower than one hour due to the presence of such words.
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/MagicWord.ph...
Could we use a similar array to list the vary-revision?
Le 23/02/12 22:47, Antoine Musso a écrit:
Le 23/02/12 22:38, Platonides a écrit :
The parser cache expires much earlier in that case. Although we don't reduce it to lower than one hour due to the presence of such words.
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/MagicWord.ph...
Could we use a similar array to list the vary-revision?
That array values then goes into ParserOutput->updateCacheExpiry() at the parser (line 3092) Vary-revision is a ParserOutput->setFlag( 'vary-revision' ) and handled at a completely different level.
Can you explain?
On Thu, Feb 23, 2012 at 1:38 PM, Platonides Platonides@gmail.com wrote:
The parser cache expires much earlier in that case. Although we don't reduce it to lower than one hour due to the presence of such words.
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/MagicWord.ph...
This is not applied to the s-maxage header sent to Squid, unfortunately. It would be really easy to do that, though, something like $this->setSquidMaxage( $parserOutput->getCacheTime() ); in OutputPage::addParserOutput() . Thoughts?
Roan
wikitech-l@lists.wikimedia.org