changeset 110492:874fdd55f8e9

Fix previous url-cache fix.
author Glenn Morris <rgm@gnu.org>
date Wed, 22 Sep 2010 23:04:01 -0700
parents 3501c2b9e719
children 4dea687a331f
files lisp/url/url-cache.el
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/url/url-cache.el	Wed Sep 22 22:59:20 2010 -0700
+++ b/lisp/url/url-cache.el	Wed Sep 22 23:04:01 2010 -0700
@@ -198,12 +198,12 @@
   (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)