summaryrefslogtreecommitdiff
path: root/plugins/new_version.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Fixed copyrightRené 'Necoro' Neumann2010-03-051-1/+1
* Wrong debug message in new_version pluginRené 'Necoro' Neumann2009-10-241-1/+1
* Turn new_version plugin from a mess into sth useful.René 'Necoro' Neumann2009-10-231-9/+9
* Honor branches different from masterRené 'Necoro' Neumann2009-10-231-2/+4
* Change the new_version plugin to use git.René 'Necoro' Neumann2009-10-231-30/+28
* Make the plugins print warnings, if they get disabled due to missing importsRené 'Necoro' Neumann2009-07-281-1/+4
* Change plugins to use WidgetPlugin if neededRené 'Necoro' Neumann2009-07-051-1/+3
* Revert previous commitRené 'Necoro' Neumann2009-05-201-6/+2
* Hopefully fixed the new-version pluginRené 'Necoro' Neumann2009-05-201-2/+6
* Fixed the menus for the current pluginsRené 'Necoro' Neumann2009-04-241-1/+1
* Generalize the new_version pluginRené 'Necoro' Neumann2009-02-201-3/+3
* Same copyright statement in all filesRené 'Necoro' Neumann2009-02-071-1/+1
* Switch from tabs to 4 spacesRené 'Necoro' Neumann2008-09-021-47/+47
* Ported remaining pluginsRené 'Necoro' Neumann2008-07-041-0/+80
tr> 2006-12-10Add 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>