On 11-06-08 05:02 PM, Brion Vibber wrote:
On Wed, Jun 8, 2011 at 1:50 PM, Robert Cummingsrobert@interjinn.comwrote:
It looks like MediaWiki 1.17 and later support this already, by calling updateCacheExpiry() on the parser cache output object.
The RSS extension uses this in its rendering hook:
if ( $wgRSSCacheCompare ) { $timeout = $wgRSSCacheCompare; } else { $timeout = $wgRSSCacheAge; } $parser->getOutput()->updateCacheExpiry( $timeout );
In theory at least this should propagate the shorter expiry time out to both the parser cache entry and the actual output page's HTTP headers, though I haven't tested to double-check myself yet.
Great, that appears to be what I was looking for... I'll go explore the code now :)
Thanks, Rob.