aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-12 12:30:10 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-12 12:30:10 -0400
commit227540fd875bfaa6b810c0d7caa346f32d5bd7ce (patch)
tree9fd0f3a6a948b9f820f709621e886da6a221c831 /IkiWiki
parent6678ab8fb3c956ea52d08e546cea7c8e3204aefb (diff)
downloadikiwiki-227540fd875bfaa6b810c0d7caa346f32d5bd7ce.tar
ikiwiki-227540fd875bfaa6b810c0d7caa346f32d5bd7ce.tar.gz
calendar: Add creation time limits to user's pagespec
This avoids all calendars rebuilding when a new page is added that will only show in one of them.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/calendar.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/calendar.pm b/IkiWiki/Plugin/calendar.pm
index 71c671d67..5aac95884 100644
--- a/IkiWiki/Plugin/calendar.pm
+++ b/IkiWiki/Plugin/calendar.pm
@@ -66,7 +66,8 @@ sub format_month (@) {
my %params=@_;
my %linkcache;
- foreach my $p (pagespec_match_list($params{page}, $params{pages},
+ foreach my $p (pagespec_match_list($params{page},
+ "creation_year($params{year}) and creation_month($params{month}) and ($params{pages})",
# add presence dependencies to update
# month calendar when pages are added/removed
deptype => deptype("presence"))) {