pagecount: Use contentless dependency
This will avoid lots of unnecessary updates of pages using the pagecount directive. Yay!master
parent
743f69c675
commit
dc4e44adf1
|
@ -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 "*") {
|
||||
|
|
Loading…
Reference in New Issue