From 8ea8e1744cd7349e854de27d615bb78fb94a6bd6 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 22 Sep 2010 23:04:01 -0700 Subject: [PATCH] Fix previous url-cache fix. --- lisp/url/url-cache.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/url/url-cache.el b/lisp/url/url-cache.el index 22095eb631d..677e03c37f3 100644 --- a/lisp/url/url-cache.el +++ b/lisp/url/url-cache.el @@ -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) -- 2.39.5