X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FClientAPI_SessionCache.pm;h=d72fb39ce097c98eb23dc4e1f20dcf93b0445440;hp=b722484eccdc534376142ce630ba441f9c4af04e;hb=20f03d52cc6c930f610c0b4466eeeeda54fdbb40;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0 diff --git a/FS/FS/ClientAPI_SessionCache.pm b/FS/FS/ClientAPI_SessionCache.pm index b722484ec..d72fb39ce 100644 --- a/FS/FS/ClientAPI_SessionCache.pm +++ b/FS/FS/ClientAPI_SessionCache.pm @@ -3,12 +3,13 @@ package FS::ClientAPI_SessionCache; use strict; use vars qw($module); use FS::UID qw(datasrc); +use FS::Conf; #ask FS::UID to run this stuff for us later install_callback FS::UID sub { my $conf = new FS::Conf; $module = $conf->config('selfservice_server-cache_module') - || 'Cache::SharedMemoryCache'; + || 'Cache::FileCache'; }; =head1 NAME @@ -39,7 +40,7 @@ sub 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 {