| 686 | | |
| 687 | | # if we got additional details, add them now |
| 688 | | if (defined $data_cache->{$cache_key}) { |
| 689 | | foreach my $key (keys %{($data_cache->{$cache_key})}) { |
| 690 | | $prog->{$key} = $data_cache->{$cache_key}->{$key}; |
| 691 | | } |
| | 686 | $stats{added_to_cache}++; |
| | 687 | &write_cache if ((($stats{added_to_cache} % 5) == 0) && (!defined $opt->{no_cache})); |
| | 688 | } else { |
| | 689 | $stats{used_existing_cache_entry}++; |
| | 690 | } |
| | 691 | |
| | 692 | # if we got additional details, add them now |
| | 693 | if (defined $data_cache->{$cache_key}) { |
| | 694 | foreach my $key (keys %{($data_cache->{$cache_key})}) { |
| | 695 | $prog->{$key} = $data_cache->{$cache_key}->{$key}; |