From: Joey Hess Date: Sat, 3 Oct 2009 19:36:23 +0000 (-0400) Subject: pagecount: Use contentless dependency X-Git-Tag: 3.20091017~27^2~130^2~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dc4e44adf13bc20c0a801f2b176370f330841098;p=ikiwiki.git pagecount: Use contentless dependency This will avoid lots of unnecessary updates of pages using the pagecount directive. Yay! --- 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 "*") {