* Do not call session_start() for RSS feeds to allow caching. If session_start
is called, it would put no-cache, ... headers and disable 304/Not Modified
operations. This is a possibly hazardrous change, we need to further
watch this. That's also the reason I won't backport the fix to 0.8
Version 0.9 ()
------------------------------------------------------------------------
+ * RSS feed does no longer initialize a session and thus now causes
+ proper cachability for Conditional Get (garvinhicking)
+
* "Comments" Sidebar plugin can now have a custom title
(garvinhicking)
}
if (trim($rssuri)) {
- $feedcache = $serendipity['serendipityPath'] . 'archives/remoterss_cache_' . preg_replace('@[^a-z0-9]*@i', '', $rssuri) . '.dat';
+ $feedcache = $serendipity['serendipityPath'] . 'templates_c/remoterss_cache_' . preg_replace('@[^a-z0-9]*@i', '', $rssuri) . '.dat';
if (!file_exists($feedcache) || filesize($feedcache) == 0 || filemtime($feedcache) < (time() - $cachetime)) {
if ($feedtype == 'rss') {
# All rights reserved. See LICENSE file for licensing details
header('Content-Type: text/xml; charset=utf-8');
-
+$delay_session_start = true;
include_once('serendipity_config.inc.php');
$version = $_GET['version'];
$description = $serendipity['blogDescription'];
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
-if (!headers_sent()) {
+if (!headers_sent() && !isset($delay_session_start)) {
session_start();
}