From: dhawes Date: Sat, 29 Jan 2005 02:57:07 +0000 (+0000) Subject: I had noticed that stale reads from cache were failing on the filesystem with an... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=84b366b0a9ec12204ff8baa28362476583186ae6;p=moodle.git 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 --- 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;