]> sipb.mit.edu Git - ikiwiki.git/commitdiff
inline: Use a contentless dependency in quick mode.
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 4 Oct 2009 20:03:01 +0000 (16:03 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 4 Oct 2009 20:03:01 +0000 (16:03 -0400)
IkiWiki/Plugin/inline.pm
debian/changelog

index ccfadfd699929a8be1764546118d89ee9f958f56..5133c4ba66726ee715e8b927db9441389322692b 100644 (file)
@@ -197,7 +197,7 @@ sub preprocess_inline (@) {
                        split ' ', $params{pagenames};
        }
        else {
-               add_depends($params{page}, $params{pages});
+               add_depends($params{page}, $params{pages}, content => ! $quick);
 
                @list = pagespec_match_list(
                        [ grep { $_ ne $params{page} } keys %pagesources ],
@@ -248,10 +248,9 @@ sub preprocess_inline (@) {
        }
 
        # Explicitly add all currently displayed pages as dependencies, so
-       # that if they are removed or otherwise changed, the inline will be
-       # sure to be updated.
+       # 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);
+               add_depends($params{page}, $p, content => ! $quick);
        }
        
        if ($feeds && exists $params{feedpages}) {
index ae39d48475f77d59482b5df9fd9882fb1189980c..9d03ae99077131a8a99e9bff5efc932039f5bffb 100644 (file)
@@ -18,6 +18,7 @@ ikiwiki (3.14159266) UNRELEASED; urgency=low
     no longer trigger an unnecessary update of the page count.
   * map: Use a contentless dependency unless show= is specified.
     This makes simple maps efficient enough that they can be used on sidebars!
+  * inline: Use a contentless dependency in quick mode.
 
  -- Joey Hess <joeyh@debian.org>  Sun, 27 Sep 2009 17:40:03 -0400