diff options
author | Glenn Morris <[email protected]> | 2010-09-22 23:04:01 -0700 |
---|---|---|
committer | Glenn Morris <[email protected]> | 2010-09-22 23:04:01 -0700 |
commit | 8ea8e1744cd7349e854de27d615bb78fb94a6bd6 (patch) | |
tree | b142d7926706a2db8dceddb0c31779b20a7ef9ab /lisp/url | |
parent | 48ff1664e2b76bea1f9c1fad8fb73e1c0d5ce849 (diff) |
Fix previous url-cache fix.
Diffstat (limited to 'lisp/url')
-rw-r--r-- | lisp/url/url-cache.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/url/url-cache.el b/lisp/url/url-cache.el index 22095eb631..677e03c37f 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) |