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