Changeset 452

Show
Ignore:
Timestamp:
04/01/06 15:42:04
Author:
ko
Message:

skip for duplicate url

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Subscription/PingServer.pm

    r439 r452  
    2323       $servers = [ $servers ] unless ref $servers; 
    2424 
     25    my %cache; 
    2526    for my $server (@{ $servers }) { 
    2627        my $agent    = Plagger::UserAgent->new; 
     
    3940            my $url = first { $_ } $node->findvalue('@url'); 
    4041            next unless $url; 
     42            next if $cache{$url}++; 
    4143            $context->log(debug => "get url: $url"); 
    4244