Lars Ingebrigtsen writes: >> - ;; Twelve hours. >> - (* 12 60 60)))) >> + gravatar-cache-ttl))) > > I don't mind that -- but is this really something that somebody would > want to control? It just seemed unlikely to me. I tend to find it difficult to reason about functionality if constants like this are in the code and not in variables. It may be unlikely that many people will want to customize it, but I'd rather expose this as a configuration variable than hide a static value in the code. As far as the URL caching code is concerned, I cleaned it up a bit and added some simple tests and documentation. Support URL-specific cache expiration * test/lisp/url/url-cache-tests.el: Test URL-to-filename and filename-to-URL mappings used by URL caching. * lisp/url/url-cache.el (url-cache-expiry-alist) (url-cache-create-url-from-file, url-cache-expired) (url-cache-prune-cache): Expire cache entries based on regular expressions matching URLs defined in new customizable variable url-cache-expire-alist. * doc/misc/url.texi (Disk Caching): Mention url-cache-expiry-alist variable.