Function: url-is-cached
url-is-cached is an autoloaded and byte-compiled function defined in
url-cache.el.gz.
Signature
(url-is-cached URL)
Documentation
Return non-nil if the URL is cached.
The actual return value is the last modification time of the cache file.
Source Code
;; Defined in /usr/src/emacs/lisp/url/url-cache.el.gz
;;;###autoload
(defun url-is-cached (url)
"Return non-nil if the URL is cached.
The actual return value is the last modification time of the cache file."
(let* ((fname (url-cache-create-filename url))
(attribs (file-attributes fname)))
(and fname
(file-exists-p fname)
(not (eq (file-attribute-type attribs) t))
(file-attribute-modification-time attribs))))