[PATCH 0/2] Add an option to cache snapshots

Lukas Fleischer cgit at cryptocrack.de
Wed Feb 5 10:46:02 CET 2014


It seems strange that one can only enable caching of both HTML pages and
snapshots or disable it for both. This patch series addresses this
shortcoming and allows for more fine-grained control over what is
cached.

I find this quite useful on my cgit setups where I usually do not want
to enable caching of HTML pages.

Lukas Fleischer (2):
  Skip cache slot when time-to-live is zero
  Add a cache-snapshot-ttl configuration variable

 cache.c      | 2 +-
 cgit.c       | 6 ++++++
 cgit.h       | 1 +
 cgitrc.5.txt | 5 +++++
 4 files changed, 13 insertions(+), 1 deletion(-)

-- 
1.8.5.3



More information about the CGit mailing list