aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-03 15:36:23 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-03 15:36:23 -0400
commitdc4e44adf13bc20c0a801f2b176370f330841098 (patch)
treee40f24f4dff168a2ca3f765496277b23ac739e92 /IkiWiki
parent743f69c675de6bdf240a2980e0924ed9d3bb782b (diff)
downloadikiwiki-dc4e44adf13bc20c0a801f2b176370f330841098.tar
ikiwiki-dc4e44adf13bc20c0a801f2b176370f330841098.tar.gz
pagecount: Use contentless dependency
This will avoid lots of unnecessary updates of pages using the pagecount directive. Yay!
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/pagecount.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/pagecount.pm b/IkiWiki/Plugin/pagecount.pm
index 5a2301af4..17eda0618 100644
--- a/IkiWiki/Plugin/pagecount.pm
+++ b/IkiWiki/Plugin/pagecount.pm
@@ -23,8 +23,8 @@ sub preprocess (@) {
$params{pages}="*" unless defined $params{pages};
# Needs to update count whenever a page is added or removed, so
- # register a dependency.
- add_depends($params{page}, $params{pages});
+ # register a contentless dependency.
+ add_depends($params{page}, $params{pages}, content => 0);
my @pages;
if ($params{pages} eq "*") {