79 |
|
} |
80 |
|
$exist=1; |
81 |
|
} |
82 |
< |
elsif ( ! defined $self->{cache} ) { |
82 |
> |
if ( ! defined $self->{cache} ) { |
83 |
|
my $loc=$self->location()."/".$self->{admindir}."/".$self->{cachedir}; |
84 |
< |
if ( ! $exist ) { |
84 |
> |
if ( !$exist || ( -e $loc ) ) { |
85 |
|
$self->{cache}=URL::URLcache->new($loc); |
86 |
|
} |
87 |
+ |
else { |
88 |
+ |
$self->{cache}=undef; |
89 |
+ |
} |
90 |
|
} |
91 |
|
return $self->{cache}; |
92 |
|
} |
102 |
|
} |
103 |
|
$exist="<"; |
104 |
|
} |
105 |
< |
elsif ( ! defined $self->{dbstore} ) { |
105 |
> |
if ( ! defined $self->{dbstore} ) { |
106 |
|
my $loc=$self->location()."/".$self->{admindir}."/".$self->{dbdir}; |
107 |
|
$self->{dbstore}=ObjectUtilities::ObjectStore->new($exist.$loc); |
108 |
|
} |