List for cgit developers and users
 help / color / mirror / Atom feed
* Intelligent caching
@ 2014-02-05 10:18 cgit
  2014-02-06 19:55 ` Jason
  0 siblings, 1 reply; 3+ messages in thread
From: cgit @ 2014-02-05 10:18 UTC (permalink / raw)


Hi,

Reading through our caching code, I wondered why we don't make it a bit
more clever. For every dynamically created page, we could just store a
fingerprint that can be computed quite fast and indicates whether the
cache slot is still up-to-date or not.

For example, on the log pages, we could save the commit the
corresponding ref points to and invalidate the cache slot when the ref
has changed. Using that, we could use the power of caching and never
deliver outdated pages at the same time.

What do you think about that?

Regards,
Lukas


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

end of thread, other threads:[~2014-02-18 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-05 10:18 Intelligent caching cgit
2014-02-06 19:55 ` Jason
2014-02-18 11:48   ` cgit

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