[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist t
From: |
Lars Ingebrigtsen |
Subject: |
bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning |
Date: |
Sat, 19 Jun 2021 14:14:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Alex Bochannek <alex@bochannek.com> writes:
> 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.
Adding user options to control things nobody has asked about isn't
helpful.
> 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.
Looks good to me. What's the use case for this, though?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning, Alex Bochannek, 2021/06/15
- bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning, Lars Ingebrigtsen, 2021/06/15
- bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning, Alex Bochannek, 2021/06/15
- bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning,
Lars Ingebrigtsen <=
- bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning, Alex Bochannek, 2021/06/19
- bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning, Lars Ingebrigtsen, 2021/06/21
- bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning, Alex Bochannek, 2021/06/21
- bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning, Benjamin Riefenstahl, 2021/06/19
- bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning, Alex Bochannek, 2021/06/19