Re: .git/info/refs

From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Date: 2007-02-02 03:52:46
Hi,

On Thu, 1 Feb 2007, H. Peter Anvin wrote:

> Johannes Schindelin wrote:
> > Hi,
> > 
> > I just had another idea: why not generate the content of the "cover page" in
> > a cron job, every minute or so, and save it into a static index.html? This
> > should take quite a load from the server, since not even Perl has to be
> > started to serve that page.
> > 
> 
> Ehm... because it often takes longer than that to generate the page?

Sorry, I should have been clearer. Plan:

1. echo "Generating" > /htdocs/git/index.html
2. edit crontab to do this every minute:
2.1 gitweb is called directly_, to generate /htdocs/git/index.html.new
2.2 /htdocs/git/index.html.new is _moved_ into /htdocs/git/index.html, 
    overwriting the existing one.

Yes, there could be two instances of this task concurrently. No, it does 
not matter.

> We can pre-generate the page before the first hit, but that's not a 
> replacement for update-time caching.

It was only meant as a quick fix for the horrible workload.

Just a thought, feel free to ignore me,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Feb 02 03:53:38 2007

This archive was generated by hypermail 2.1.8 : 2007-02-02 03:57:15 EST