pagecount: Use contentless dependency

This will avoid lots of unnecessary updates of pages using the pagecount
directive. Yay!
master
Joey Hess 2009-10-03 15:36:23 -04:00
parent 743f69c675
commit dc4e44adf1
1 changed files with 2 additions and 2 deletions

View File

@ -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 "*") {