]> git.mjollnir.org Git - s9y.git/commitdiff
use a better fix, I guess.
authorgarvinhicking <garvinhicking>
Mon, 18 Apr 2005 14:02:20 +0000 (14:02 +0000)
committergarvinhicking <garvinhicking>
Mon, 18 Apr 2005 14:02:20 +0000 (14:02 +0000)
We may need to think if there are other areas apart from RSS feeds that
may get cached using appropriate last-modified headers. Most of the frontend
will fail though, as sidebars may server dynamic content.

rss.php
serendipity_config.inc.php

diff --git a/rss.php b/rss.php
index 12740b82d8d4ed88bba695d4497af835bd4fc6f1..26301cab0bbe783729f0ad58e0bbbf63580e8e53 100644 (file)
--- a/rss.php
+++ b/rss.php
@@ -3,7 +3,7 @@
 # All rights reserved.  See LICENSE file for licensing details
 
 header('Content-Type: text/xml; charset=utf-8');
-$delay_session_start = true;
+session_cache_limiter('public');
 include_once('serendipity_config.inc.php');
 $version         = $_GET['version'];
 $description     = $serendipity['blogDescription'];
index 621cde8239c63d4a9dd39c2774d96c7f7671698b..a9131146358bd583943e998e5df6e4d6edf0de7f 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
 
-if (!headers_sent() && !isset($delay_session_start)) {
+if (!headers_sent()) {
     session_start();
 }