Re: .git/info/refs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]