projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
acf139d
)
default to FileCache for selfservice session cache
author
ivan
<ivan>
Wed, 28 Nov 2007 08:46:23 +0000
(08:46 +0000)
committer
ivan
<ivan>
Wed, 28 Nov 2007 08:46:23 +0000
(08:46 +0000)
FS/FS/ClientAPI_SessionCache.pm
patch
|
blob
|
history
Makefile
patch
|
blob
|
history
diff --git
a/FS/FS/ClientAPI_SessionCache.pm
b/FS/FS/ClientAPI_SessionCache.pm
index
b722484
..
bfab805
100644
(file)
--- a/
FS/FS/ClientAPI_SessionCache.pm
+++ b/
FS/FS/ClientAPI_SessionCache.pm
@@
-8,7
+8,7
@@
use FS::UID qw(datasrc);
install_callback FS::UID sub {
my $conf = new FS::Conf;
$module = $conf->config('selfservice_server-cache_module')
install_callback FS::UID sub {
my $conf = new FS::Conf;
$module = $conf->config('selfservice_server-cache_module')
- || 'Cache::
SharedMemory
Cache';
+ || 'Cache::
File
Cache';
};
=head1 NAME
};
=head1 NAME
@@
-39,7
+39,7
@@
sub new {
eval "use $module;";
die $@ if $@;
my $self = $module->new(@_);
eval "use $module;";
die $@ if $@;
my $self = $module->new(@_);
- $self->set_cache_root('
/usr/local/etc/freeside
/clientapi_session.'.datasrc)
+ $self->set_cache_root('
%%%FREESIDE_CACHE%%%
/clientapi_session.'.datasrc)
if $module =~ /^Cache::FileCache$/;
$self;
} else {
if $module =~ /^Cache::FileCache$/;
$self;
} else {
diff --git
a/Makefile
b/Makefile
index
cf69f31
..
da54aa9
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-186,6
+186,7
@@
perl-modules:
" blib/lib/FS.pm;\
perl -p -i -e "\
s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
" blib/lib/FS.pm;\
perl -p -i -e "\
s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
+ s|%%%FREESIDE_CACHE%%%|${FREESIDE_CACHE}|g;\
" blib/lib/FS/*.pm;\
perl -p -i -e "\
s|%%%FREESIDE_EXPORT%%%|${FREESIDE_EXPORT}|g;\
" blib/lib/FS/*.pm;\
perl -p -i -e "\
s|%%%FREESIDE_EXPORT%%%|${FREESIDE_EXPORT}|g;\