]> git.mjollnir.org Git - moodle.git/commitdiff
I had noticed that stale reads from cache were failing on the filesystem with an...
authordhawes <dhawes>
Sat, 29 Jan 2005 02:57:07 +0000 (02:57 +0000)
committerdhawes <dhawes>
Sat, 29 Jan 2005 02:57:07 +0000 (02:57 +0000)
lib/magpie/rss_fetch.inc

index c41945cc73079183cb6ecb550fb6db077adbbca9..b4459817451f0e3b07923ae49b2a925f808b1739 100644 (file)
@@ -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;