List for cgit developers and users
 help / color / mirror / Atom feed
From: actionmystique at gmail.com (jean-christophe manciot)
Subject: Caching TTL values per repository
Date: Thu, 31 Oct 2019 19:41:51 +0100	[thread overview]
Message-ID: <CAKcFC3b2hukjQ8q05zbiCEZZ=MXT-agq8nP2a7HN3JKhsRwH1A@mail.gmail.com> (raw)

Hi there,

I have defined some global cache TTL values in /etc/cgitrc:
cache-dynamic-ttl=0
cache-scanrc-ttl=0
cache-snapshot-ttl=0
cache-static-ttl=1440

For a particular repo <https://git.sdxlive.com/GNS3-Labs-Collection/> which
is not expected to be modified anytime soon and holds many objects, I have
tried to set other values in its own cgitrc:
cache-dynamic-ttl=-1
cache-scanrc-ttl=-1
cache-snapshot-ttl=-1
cache-static-ttl=-1

However, they don't seem effective in the sense that some requests never
seem to be cached at all and can take a very long time to complete; for
instance, its log <https://git.sdxlive.com/GNS3-Labs-Collection/log/>.

- Is this behaviour expected because it is not possible to set cache values
per repository?
- or am I missing something?



-- 
Jean-Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20191031/932fcadf/attachment.html>


             reply	other threads:[~2019-10-31 18:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-31 18:41 actionmystique [this message]
2019-11-04 11:27 ` hjemli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKcFC3b2hukjQ8q05zbiCEZZ=MXT-agq8nP2a7HN3JKhsRwH1A@mail.gmail.com' \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).