summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-01-13 18:34:37 +0100
committerLars Hjemli <hjemli@gmail.com>2008-01-13 18:34:37 +0100
commit2122c696a34133a616b9ec6d72abe9eb89e728aa (patch)
treefc3c4693f77b04c1eaf549841d5bae46d9801608 /tests
parentf39c3c99a12154cdafcdc501a821e3fadd3c0602 (diff)
parentb74cc91574a9284d2f6446fd2ef3df6298ed6992 (diff)
downloadcgit-2122c696a34133a616b9ec6d72abe9eb89e728aa.tar.gz
cgit-2122c696a34133a616b9ec6d72abe9eb89e728aa.tar.bz2
cgit-2122c696a34133a616b9ec6d72abe9eb89e728aa.zip
Merge branch 'stable'
* stable: CGIT 0.7.2 Use GIT-1.5.3.8 Compare string lengths when parsing the snapshot mask Default repo description to "[no description]"
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
ml.c?h=v0.8.3&id=7640d90b73c01b16bb04ce4c541f52cbaae5f82a&follow=1'>Add license file and copyright noticesLars Hjemli5-0/+372 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add caching infrastructureLars Hjemli9-28/+353 This enables internal caching of page output. Page requests are split into four groups: 1) repo listing (front page) 2) repo summary 3) repo pages w/symbolic references in query string 4) repo pages w/constant sha1's in query string Each group has a TTL specified in minutes. When a page is requested, a cached filename is stat(2)'ed and st_mtime is compared to time(2). If TTL has expired (or the file didn't exist), the cached file is regenerated. When generating a cached file, locking is used to avoid parallell processing of the request. If multiple processes tries to aquire the same lock, the ones who fail to get the lock serves the (expired) cached file. If the cached file don't exist, the process instead calls sched_yield(2) before restarting the request processing. Signed-off-by: Lars Hjemli <hjemli@gmail.com>