Re: [PATCH] gitweb: Support caching projects list
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 14, 2008, 00:19 UTC
- Message-ID
- <7v63vqw40m.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20080313231413.27966.3383.stgit@rover>
Petr Baudis <pasky@suse.cz> writes:
> To prevent contention when multiple accesses coincide with cache > expiration, the timeout is postponed to time()+120 when we start > refreshing. When showing cached version, a disclaimer is shown at the > top of the projects list.
Isn't this still racy when two requests come at about the same time? Perhaps you can avoid it by using a lockfile?