Changeset 931
- Timestamp:
- 06/08/06 21:24:20
- Files:
-
- trunk/plagger/lib/Plagger/Rule/Deduped.pm (modified) (1 diff)
- trunk/plagger/lib/Plagger/Rule/URLBL.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Rule/Deduped.pm
r929 r931 67 67 =item path 68 68 69 Specified path to the database. This config is dependent for the DB_File backend. 69 Specified path to the database. This config is dependent for the 70 DB_File backend. 70 71 71 72 =item compare_body trunk/plagger/lib/Plagger/Rule/URLBL.pm
r711 r931 27 27 return unless $url; 28 28 29 if (exists $self->{dnscache}->{$url}) { 30 return $self->{dnscache}->{$url}; 31 } 32 29 33 my $res = Net::DNS::Resolver->new; 30 34 my $dnsbl = $self->{dnsbl}; … … 40 44 if ($q && $q->answer) { 41 45 Plagger->context->log(info => "$domain.$dns found."); 42 return 0;46 return $self->{dnscache}->{$url} = 0; 43 47 } 44 48 } 45 return 1; 49 50 return $self->{dnscache}->{$url} = 1; 46 51 } 47 52
