summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-09-08 17:20:04 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-09-08 17:20:04 -0400
commit93ab004cc23e183199d760f9ecd5afee260c47e9 (patch)
tree63d79896556d7c360134fdabcc068a92b06aa1da
parentc2ae7966cac1bf691fcf76afafdee4a03239a231 (diff)
memoize template_file
This avoids a lot of unncessary stats, and trims about 1 second off a docwiki rebuild here.
-rw-r--r--IkiWiki.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index b8e89b73f..01898936f 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -33,6 +33,7 @@ use Memoize;
memoize("abs2rel");
memoize("pagespec_translate");
memoize("file_pruned");
+memoize("template_file");
sub getsetup () {
wikiname => {