From 84b366b0a9ec12204ff8baa28362476583186ae6 Mon Sep 17 00:00:00 2001 From: dhawes Date: Sat, 29 Jan 2005 02:57:07 +0000 Subject: [PATCH] I had noticed that stale reads from cache were failing on the filesystem with an invalid md5 checksum of the filename - this should fix that --- lib/magpie/rss_fetch.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/magpie/rss_fetch.inc b/lib/magpie/rss_fetch.inc index c41945cc73..b445981745 100644 --- a/lib/magpie/rss_fetch.inc +++ b/lib/magpie/rss_fetch.inc @@ -151,7 +151,10 @@ function fetch_rss ($url) { // setup headers if ( $cache_status == 'STALE' ) { - $rss = $cache->get( $url ); + // modified by Daryl Hawes - stale cache reads were failing because the wrong + // string was being passed for filename +// $rss = $cache->get( $url ); + $rss = $cache->get( $cache_key ); if ( $rss->etag and $rss->last_modified ) { $request_headers['If-None-Match'] = $rss->etag; $request_headers['If-Last-Modified'] = $rss->last_modified; -- 2.39.5