From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alex Bochannek Newsgroups: gmane.emacs.bugs Subject: bug#49033: 28.0.50; [PATCH] Feature suggestion, url-cache-expiry-alist to override expire time for cache pruning Date: Mon, 21 Jun 2021 11:25:09 -0700 Message-ID: References: <87r1h3tdys.fsf@gnus.org> <877diq2gqw.fsf@gnus.org> <87lf73tnl4.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22821"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: 49033@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 21 20:26:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvOcb-0005d6-8s for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 20:26:09 +0200 Original-Received: from localhost ([::1]:38062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvOca-0002gl-A7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 14:26:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvOcU-0002eH-2q for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2021 14:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvOcT-0004zN-QY for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2021 14:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvOcT-0006EJ-Ni for bug-gnu-emacs@gnu.org; Mon, 21 Jun 2021 14:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Bochannek Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jun 2021 18:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49033 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 49033-submit@debbugs.gnu.org id=B49033.162429991323886 (code B ref 49033); Mon, 21 Jun 2021 18:26:01 +0000 Original-Received: (at 49033) by debbugs.gnu.org; 21 Jun 2021 18:25:13 +0000 Original-Received: from localhost ([127.0.0.1]:36908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvObh-0006DC-7r for submit@debbugs.gnu.org; Mon, 21 Jun 2021 14:25:13 -0400 Original-Received: from ns.lapseofthought.com ([50.0.39.240]:58674 helo=mail.lapseofthought.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvObe-0006D1-W5 for 49033@debbugs.gnu.org; Mon, 21 Jun 2021 14:25:12 -0400 Original-Received: from awb-mbp.local (unknown [IPv6:2601:646:4200:b470:e85b:bfc1:2231:95d9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.lapseofthought.com (Postfix) with ESMTPSA id 4G7ycj6Vm7z3pdX4; Mon, 21 Jun 2021 11:25:09 -0700 (PDT) In-Reply-To: <87lf73tnl4.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 21 Jun 2021 14:21:43 +0200") Authentication-Results: ORIGINATING; auth=pass smtp.auth=alex smtp.mailfrom=alex@bochannek.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:208828 Archived-At: Lars Ingebrigtsen writes: > Alex Bochannek writes: > >> I originally had looked at this for Gravatar entries and I am now using >> it to avoid fetching the same images in RSS feeds. > > Right; makes sense. > >> I just noticed though that `url-cache-create-url-from-file' won't work >> if `url-cache-create-filename-human-readable' is used. Any suggestions >> for how to address that? > > No, sorry -- I'm pretty unfamiliar with the url-cache code. I need to think about this some more. The easy way is to not try to recreate the URL but to have users specify the path for cache entries. I might just do that and see how that works out for me in practice. Either way, it's not ready for merging yet. Thanks! -- Alex.