Index: trunk/extensions/MetavidWiki/includes/specials/MV_SpecialExport.php |
— | — | @@ -525,9 +525,14 @@ |
526 | 526 | } |
527 | 527 | class mvRSSFeed extends ChannelFeed { |
528 | 528 | function outHeader( $set_content_type=true ) { |
529 | | - global $wgStyleVersion, $wgStylePath; |
| 529 | + global $wgStyleVersion, $wgStylePath, $wgOut; |
| 530 | + |
530 | 531 | if( $set_content_type ) |
531 | 532 | $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) . " );" ); |
532 | 537 | |
533 | 538 | echo '<?xml version="1.0" encoding="utf-8"?>' . "\n"; |
534 | 539 | echo '<?xml-stylesheet type="text/css" href="' . |