projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
743f69c
)
pagecount: Use contentless dependency
author
Joey Hess
<joey@gnu.kitenet.net>
Sat, 3 Oct 2009 19:36:23 +0000
(15:36 -0400)
committer
Joey Hess
<joey@gnu.kitenet.net>
Sat, 3 Oct 2009 19:36:23 +0000
(15:36 -0400)
This will avoid lots of unnecessary updates of pages using the pagecount
directive. Yay!
IkiWiki/Plugin/pagecount.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/pagecount.pm
b/IkiWiki/Plugin/pagecount.pm
index 5a2301af49232943d4f0889c0f3b9ba28f05396f..17eda06181ac19fe00ee2de2b2f52fb336980d49 100644
(file)
--- 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 "*") {