On 11-06-08 05:02 PM, Brion Vibber wrote:
On Wed, Jun 8, 2011 at 1:50 PM, Robert
Cummings<robert(a)interjinn.com>wrote;wrote:
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.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.