]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous url-cache fix.
authorGlenn Morris <rgm@gnu.org>
Thu, 23 Sep 2010 06:04:01 +0000 (23:04 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 23 Sep 2010 06:04:01 +0000 (23:04 -0700)
lisp/url/url-cache.el

index 22095eb631d3f07ed62419aa15bf5c2cc5b17dc6..677e03c37f3794bf0ed62c58d6b7d11d023e627c 100644 (file)
@@ -198,12 +198,12 @@ If `url-standalone-mode' is non-nil, cached items never expire."
   (if url-standalone-mode
       (not (file-exists-p (url-cache-create-filename url)))
     (let ((cache-time (url-is-cached url)))
-      (and cache-time
-          (time-less-p
-           (time-add
-            cache-time
-            (seconds-to-time (or expire-time url-cache-expire-time)))
-           (current-time))))))
+      (or (not cache-time)
+         (time-less-p
+          (time-add
+           cache-time
+           (seconds-to-time (or expire-time url-cache-expire-time)))
+          (current-time))))))
 
 (provide 'url-cache)