This will avoid lots of unnecessary updates of pages using the pagecount
directive. Yay!
$params{pages}="*" unless defined $params{pages};
# Needs to update count whenever a page is added or removed, so
$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 "*") {
my @pages;
if ($params{pages} eq "*") {