]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/CGI.pm
* Encode & in diffurl in examples, to conform to pedantic rules.
[ikiwiki.git] / IkiWiki / CGI.pm
index 3e4cbe4cf4a97598b42bf03fad16ff54b2269423..424ce2c78493d5ecb21dee5f56787e54b1f23700 100644 (file)
@@ -34,6 +34,13 @@ sub cgi_recentchanges ($) { #{{{
        
        unlockwiki();
 
        
        unlockwiki();
 
+       # Optimisation: building recentchanges means calculating lots of
+       # links. Memoizing htmllink speeds it up a lot (can't be memoized
+       # during page builds as the return values may change, but they
+       # won't here.)
+       eval q{use Memoize};
+       memoize("htmllink");
+
        my $template=template("recentchanges.tmpl"); 
        $template->param(
                title => "RecentChanges",
        my $template=template("recentchanges.tmpl"); 
        $template->param(
                title => "RecentChanges",