r48891 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48890‎ | r48891 | r48892 >
Date:18:45, 26 March 2009
Author:dale
Status:deferred
Tags:
Comment:
force short cache for resource intensive rss export page (@@todo improve squid integration)
Modified paths:
  • /trunk/extensions/MetavidWiki/includes/specials/MV_SpecialExport.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/includes/specials/MV_SpecialExport.php
@@ -525,9 +525,14 @@
526526 }
527527 class mvRSSFeed extends ChannelFeed {
528528 function outHeader( $set_content_type=true ) {
529 - global $wgStyleVersion, $wgStylePath;
 529+ global $wgStyleVersion, $wgStylePath, $wgOut;
 530+
530531 if( $set_content_type )
531532 $this->httpHeaders();
 533+
 534+ //force the cache headers for 1 hour cache of rss and search results
 535+ header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', ( time() + 60*60 ) ) . ' GMT' );
 536+ header( "Cache-Control: max-age=" . (60*60) . " );" );
532537
533538 echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
534539 echo '<?xml-stylesheet type="text/css" href="' .

Status & tagging log