From: Junio C Hamano Date: Fri, 14 Mar 2008 00:19:53 GMT Subject: Re: [PATCH] gitweb: Support caching projects list Message-ID: <7v63vqw40m.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080313231413.27966.3383.stgit@rover> Petr Baudis 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?