From fb53bfe26d4ed0fd3e63d17c7b02d9c8d0e98fb4 Mon Sep 17 00:00:00 2001 From: Ben Coburn Date: Thu, 25 May 2006 10:32:02 +0200 Subject: 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 --- inc/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/html.php') 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']) ? '
  • ' : '
  • '; print '
    '; -- cgit v1.2.3