Permalink
Browse files

I had noticed that stale reads from cache were failing on the filesys…

…tem with an invalid md5 checksum of the filename - this should fix that
  • Loading branch information...
1 parent 5c75c3c commit 84b366b0a9ec12204ff8baa28362476583186ae6 dhawes committed Jan 29, 2005
Showing with 4 additions and 1 deletion.
  1. +4 −1 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;

0 comments on commit 84b366b

Please sign in to comment.