diff options
author | Ben Coburn <btcoburn@silicodon.net> | 2006-05-25 10:32:02 +0200 |
---|---|---|
committer | Ben Coburn <btcoburn@silicodon.net> | 2006-05-25 10:32:02 +0200 |
commit | fb53bfe26d4ed0fd3e63d17c7b02d9c8d0e98fb4 (patch) | |
tree | ba4d26c7dce3fe1502849066a8e597aadf35cfdc /inc/html.php | |
parent | 6f6c2468ef0087e958dce76036f38ba4296038f1 (diff) | |
download | rpg-fb53bfe26d4ed0fd3e63d17c7b02d9c8d0e98fb4.tar.gz rpg-fb53bfe26d4ed0fd3e63d17c7b02d9c8d0e98fb4.tar.bz2 |
getRevisionInfo much faster (cached)
Makes getRevisionInfo much faster when loading all the revisions of a page.
This is done by efficiently parsing the 'changes.log' data and caching the
results (in memory) so that future calls to getRevisionInfo return
immediately without reloading the 'changes.log' file.
(Note: the changelog system in DokuWiki should still be rewritten so
that changes are not logged into one huge file!)
darcs-hash:20060525083202-05dcb-8c0eea695055b51a218a0e311169cda0bb0d4363.gz
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php index 1dc0d5759..d31c97724 100644 --- a/inc/html.php +++ b/inc/html.php @@ -493,7 +493,7 @@ function html_revisions(){ foreach($revisions as $rev){ $date = date($conf['dformat'],$rev); - $info = getRevisionInfo($ID,$rev); + $info = getRevisionInfo($ID,$rev,true); print ($info['minor']) ? '<li class="minor">' : '<li>'; print '<div class="li">'; |