Function: url-cache-expired
url-cache-expired is a byte-compiled function defined in
url-cache.el.gz.
Signature
(url-cache-expired URL &optional EXPIRE-TIME)
Documentation
Return non-nil if a cached URL is older than EXPIRE-TIME seconds.
The default value of EXPIRE-TIME is url-cache-expire-time.
If url-standalone-mode is non-nil, cached items never expire.
Source Code
;; Defined in /usr/src/emacs/lisp/url/url-cache.el.gz
(defun url-cache-expired (url &optional expire-time)
"Return non-nil if a cached URL is older than EXPIRE-TIME seconds.
The default value of EXPIRE-TIME is `url-cache-expire-time'.
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)))
(or (not cache-time)
(time-less-p
(time-add
cache-time
(or expire-time url-cache-expire-time))
nil)))))