[PATCH 0/2] TTL updates

Tim Nordell tim.nordell at logicpd.com
Fri Feb 26 21:57:07 CET 2016


This patchset simplifies the TTL calculation into one routine and uses
seconds internally through the cache routines and the routines in
cgit.c.  (The configuration file still uses minutes.)  Additionally,
this patchset adds a new syntax for the cache lines that allows a
different cache lifetime if the user refreshes the page.

Tim Nordell (2):
  ttl: Consolidate TTL calculation
  ttl: Support different TTL times based on cache-control

 cache.c     |  2 +-
 cgit.c      | 99 ++++++++++++++++++++++++++++++++++++++++++-------------------
 cgit.h      | 18 +++++++----
 ui-shared.c |  2 +-
 4 files changed, 82 insertions(+), 39 deletions(-)

-- 
2.4.9



More information about the CGit mailing list