73 |
|
print "Attempting download of ".$url->url()."\n"; |
74 |
|
|
75 |
|
# Generate a location name if not provided |
76 |
< |
$nocache=1; |
76 |
> |
my $nocache=1; |
77 |
|
if ( @_ ) { |
78 |
|
$location=shift; |
79 |
|
$nocache=0; # dont cache if downloaded to an external location |
89 |
|
|
90 |
|
# now register it in the cache if successful |
91 |
|
if ( $file && $nocache) { |
92 |
< |
$self->{cache}->store($url->url(), $location); |
92 |
> |
#$self->{cache}->store($url->url(), $location); |
93 |
> |
$self->{cache}->store($url->url(), $file); |
94 |
|
} |
95 |
|
return ($url->url(), $file); |
96 |
|
} |