166 |
|
|
167 |
$log->logconfess("can't find database name") unless ($database); |
$log->logconfess("can't find database name") unless ($database); |
168 |
|
|
169 |
my $cache_file = "$cache_path/$prefix/$database#$id"; |
my $cache_file = "$cache_path/$prefix#$id"; |
170 |
$cache_file =~ s#//#/#go; |
$cache_file =~ s#//#/#go; |
171 |
|
|
172 |
open(my $fh, '>>', '/tmp/foo'); |
open(my $fh, '>>', '/tmp/foo'); |
173 |
print $fh "$cache_file\n"; |
print $fh "LOAD $cache_path / $prefix # $id ==> $cache_file\n"; |
174 |
close($fh); |
close($fh); |
175 |
|
|
176 |
$log->debug("using cache_file $cache_file"); |
$log->debug("using cache_file $cache_file"); |
230 |
|
|
231 |
my $prefix = $arg->{prefix} || ''; |
my $prefix = $arg->{prefix} || ''; |
232 |
|
|
233 |
my $cache_file = $self->{path} . "/$prefix/$database#" . $arg->{id}; |
my $cache_file = $self->{path} . "/$prefix#" . $arg->{id}; |
234 |
$cache_file =~ s#//#/#go; |
$cache_file =~ s#//#/#go; |
235 |
|
|
236 |
$log->debug("creating storable cache file $cache_file"); |
$log->debug("creating storable cache file $cache_file"); |