List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH 0/2] TTL updates
@ 2016-02-26 20:57 tim.nordell
  2016-02-26 20:57 ` [PATCH 1/2] ttl: Consolidate TTL calculation tim.nordell
  2016-02-26 20:57 ` [PATCH 2/2] ttl: Support different TTL times based on cache-control tim.nordell
  0 siblings, 2 replies; 6+ messages in thread
From: tim.nordell @ 2016-02-26 20:57 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-02-29 15:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-26 20:57 [PATCH 0/2] TTL updates tim.nordell
2016-02-26 20:57 ` [PATCH 1/2] ttl: Consolidate TTL calculation tim.nordell
2016-02-28 12:22   ` john
2016-02-26 20:57 ` [PATCH 2/2] ttl: Support different TTL times based on cache-control tim.nordell
2016-02-28 12:32   ` john
2016-02-29 15:08     ` tim.nordell

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).