minor optimisation

Assume the aggregated content is only going to be in one of the
directories, and so stop if it's successfully removed from the
transientdir.
master
Joey Hess 2011-02-09 13:56:05 -04:00
parent 3d7147992a
commit 91a408ec77
1 changed files with 2 additions and 2 deletions

View File

@ -390,8 +390,8 @@ sub garbage_collect () {
# any guid whose feed is gone should be removed
if (! exists $feeds{$guid->{feed}}) {
if (exists $guid->{page}) {
unlink "$config{srcdir}/".htmlfn($guid->{page});
unlink $IkiWiki::Plugin::transient::transientdir."/".htmlfn($guid->{page});
unlink $IkiWiki::Plugin::transient::transientdir."/".htmlfn($guid->{page})
|| unlink "$config{srcdir}/".htmlfn($guid->{page});
}
delete $guids{$guid->{guid}};
}