This could be clever, if it's done properly. It'd have to be something along the lines of "this page won't ever change, unless you can create an sha1 hash collision", and we'd have to be certain that such pages then only use information out of that sha1 object, and not additional related objects that can be changed.
On Wed, Feb 5, 2014 at 11:18 AM, Lukas Fleischer <c...@cryptocrack.de>wrote: > 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 > _______________________________________________ > CGit mailing list > CGit@lists.zx2c4.com > http://lists.zx2c4.com/mailman/listinfo/cgit > -- Jason A. Donenfeld Deep Space Explorer fr: +33 6 51 90 82 66 us: +1 513 476 1200 www.jasondonenfeld.com
_______________________________________________ CGit mailing list CGit@lists.zx2c4.com http://lists.zx2c4.com/mailman/listinfo/cgit