Filter hooks are no longer called during the scan phase. This will prevent wikilinks added by filters from being scanned properly. But no known filter hook does that, and calling filters unncessarily during scan slowed down complex filters such as the one used to update the xapian index.

master
Joey Hess 2008-06-04 00:15:15 -04:00
parent 53b188ed35
commit fab1333b67
2 changed files with 5 additions and 4 deletions

View File

@ -156,10 +156,6 @@ sub scan ($) { #{{{
my $page=pagename($file); my $page=pagename($file);
will_render($page, htmlpage($page), 1); will_render($page, htmlpage($page), 1);
# Always needs to be done, since filters might add links
# to the content.
$content=filter($page, $page, $content);
if ($config{discussion}) { if ($config{discussion}) {
# Discussion links are a special case since they're # Discussion links are a special case since they're
# not in the text of the page, but on its template. # not in the text of the page, but on its template.

5
debian/changelog vendored
View File

@ -5,6 +5,11 @@ ikiwiki (2.49) UNRELEASED; urgency=low
* inline: The optimisation in 2.41 broke nested inlines. Detect those * inline: The optimisation in 2.41 broke nested inlines. Detect those
and avoid overoptimising. and avoid overoptimising.
* search: Converted to use xapian-omega. * search: Converted to use xapian-omega.
* Filter hooks are no longer called during the scan phase. This will
prevent wikilinks added by filters from being scanned properly. But
no known filter hook does that, and calling filters unncessarily during
scan slowed down complex filters such as the one used to update the xapian
index.
-- Joey Hess <joeyh@debian.org> Fri, 30 May 2008 19:08:54 -0400 -- Joey Hess <joeyh@debian.org> Fri, 30 May 2008 19:08:54 -0400