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
parent
3d7147992a
commit
91a408ec77
|
@ -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}};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue