linkmap: does need presence deps

Otherwise, removal of a page with no links will not be noticed,
since no links will change.
master
Joey Hess 2009-10-06 19:24:17 -04:00
parent 7a8b492bcc
commit a5d825f286
2 changed files with 5 additions and 4 deletions

View File

@ -28,8 +28,9 @@ sub preprocess (@) {
$params{pages}="*" unless defined $params{pages}; $params{pages}="*" unless defined $params{pages};
# Needs to update whenever a relevant page's links change. # Needs to update whenever a relevant page is added, or removed, or
add_depends($params{page}, $params{pages}, links => 1); # its links change.
add_depends($params{page}, $params{pages}, presence => 1, links => 1);
# Can't just return the linkmap here, since the htmlscrubber # Can't just return the linkmap here, since the htmlscrubber
# scrubs out all <object> tags (with good reason!) # scrubs out all <object> tags (with good reason!)

4
debian/changelog vendored
View File

@ -27,8 +27,8 @@ ikiwiki (3.14159266) UNRELEASED; urgency=low
where if only a small set of pages were considered by orphans/pagestats, where if only a small set of pages were considered by orphans/pagestats,
changes to links on other pages failed to cause an update. changes to links on other pages failed to cause an update.
* linkmap: Use a combination of presence and link dependencies. * linkmap: Use a combination of presence and link dependencies.
This makes the map be regenerated much less frequently, so larger This makes the map be regenerated much less frequently in many cases,
maps are more practical to use now. so larger maps are more practical to use now.
* Transitive dependencies are now correctly supported. * Transitive dependencies are now correctly supported.
* Rebuild wikis on upgrade to this version to get improved dependency * Rebuild wikis on upgrade to this version to get improved dependency
info. info.