]> sipb.mit.edu Git - ikiwiki.git/commitdiff
remove explicit addition of dependencies for displayed pages
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 8 Oct 2009 01:57:31 +0000 (21:57 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 8 Oct 2009 01:57:31 +0000 (21:57 -0400)
that hack is not needed, thanks to pagespec influences calculation

IkiWiki/Plugin/calendar.pm
IkiWiki/Plugin/inline.pm
IkiWiki/Plugin/map.pm

index a1117992a865ed3a5cd5a7a8ded409d3b8ace33e..ec8e232e16e7b5775ce12733890b73373f8759e6 100644 (file)
@@ -213,11 +213,6 @@ EOF
        # Add dependencies to update the calendar whenever pages
        # matching the pagespec are added or removed.
        add_depends($params{page}, $params{pages}, presence => 1);
-       # Explicitly add all currently linked pages as dependencies, so
-       # that if they are removed, the calendar will be sure to be updated.
-       foreach my $p (@list) {
-               add_depends($params{page}, $p, presence => 1);
-       }
 
        return $calendar;
 }
index cebd9037cc65c6095bca009c99663d2894223dd4..fc4e00a838d331f3b0c66fa33e3802d33d8f4f18 100644 (file)
@@ -247,12 +247,6 @@ sub preprocess_inline (@) {
                @list=@list[0..$params{show} - 1];
        }
 
-       # Explicitly add all currently displayed pages as dependencies, so
-       # that if they are removed, the inline will be sure to be updated.
-       foreach my $p ($#list >= $#feedlist ? @list : @feedlist) {
-               add_depends($params{page}, $p, presence => $quick);
-       }
-       
        if ($feeds && exists $params{feedpages}) {
                @feedlist=pagespec_match_list(\@feedlist, $params{feedpages}, location => $params{page});
        }
index 625cfdfcaaa723a80f7c15e155d70d0583d2b9b7..46f11dc8948ea66b63a72e65b2e6d34910b45fc4 100644 (file)
@@ -71,11 +71,6 @@ sub preprocess (@) {
        # cases, when its content changes, if show= is specified), so
        # register a dependency.
        add_depends($params{page}, $params{pages}, presence => ! exists $params{show});
-       # Explicitly add all currently shown pages, to detect when pages
-       # are removed.
-       foreach my $item (keys %mapitems) {
-               add_depends($params{page}, $item, presence => ! exists $params{show});
-       }
 
        # Create the map.
        my $parent="";