git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb.cgi

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 19, 2005, 00:27 UTC
Message-ID
<Pine.LNX.4.64.0510181645200.3369@g5.osdl.org>
In-Reply-To
<43552FC2.3000000@zytor.com>
On Tue, 18 Oct 2005, H. Peter Anvin wrote:
> 
> I set up mod_cache (which I didn't know about, silly me) and so far it seems
> to work and has produced a tremendous decrease in load and improvement in
> response time.
It really doesn't work very well with the "front page" though..

Doing a "Save page as.." shows that it's not a huge page: it's roughly 700 lines long and 57kB in size, but pressing the reload button (or just going somewhere else and coming back immediately) takes 45 seconds to reload for me.

Trying again shows that it _is_ cached if you press the reload button immediately again, but I haven't quite figured out how long the cache timeout is. It seems to be around one minute (from some very preliminary tests it's more than 25 seconds, but less than a minute and a half).

Considering that apparently the load is enough that it takes 45 seconds to generate (scary in itself), is should clearly be cached for more than one minute. More like ten minutes or half an hour, especially since mirroring any content changes takes longer than that anyway.

Now, I suspect all the content on kernel.org could easily be cached for ten minutes.

As far as I can tell, mod_cache without any expiry information uses
	CacheDefaultExpire 

which should default to one hour according to the docs. Have you changed that to one minute? Maybe making it 10 minutes would be better?

That said, I tried to figure out how the front page is generated, but haven't quite. Can somebody (Kay?) please say what it does most, and I can try to make sure git does that efficiently..

			Linus
Previous: Brian GerstNext: H. Peter Anvin
Message 6 of 15 in “gitweb.cgi”
  1. H. Peter AnvinOct 18, 2005
  2. Kay SieversOct 18, 2005
  3. H. Peter AnvinOct 18, 2005
  4. H. Peter AnvinOct 18, 2005
  5. Brian GerstOct 18, 2005
  6. Linus TorvaldsOct 19, 2005
  7. H. Peter AnvinOct 19, 2005
  8. Optimize common case of git-rev-list (was Re: gitweb.cgi)Linus Torvalds, Oct 19, 2005
  9. H. Peter AnvinOct 19, 2005
  10. Linus TorvaldsOct 19, 2005
  11. H. Peter AnvinOct 19, 2005
  12. Linus TorvaldsOct 19, 2005
  13. H. Peter AnvinOct 19, 2005
  14. Kay SieversOct 19, 2005
  15. Kay SieversOct 19, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.