This is an awful hack.
[girocco.git] / mongo-crazy-gitweb-caching-hack.diff
blobf50738022be807d0d8daf9f98193dc298c5823b0
1 --- git.git/gitweb/gitweb.perl 2011-01-10 18:45:22.492147614 -0800
2 +++ git.git/gitweb/gitweb.perl 2011-01-10 18:46:08.996147321 -0800
3 @@ -4360,7 +4360,7 @@
4 $cache_mtime = stat($cache_file)->mtime;
6 if (defined $cache_mtime && # caching is on and $cache_file exists
7 - $cache_mtime + $cache_lifetime*60 > $now &&
8 + $cache_lifetime > 1 &&
9 (my $dump = retrieve($cache_file))) {
10 # Cache hit.
11 $stale = $now - $cache_mtime;