communigate provisioning phase 2: Domain:Account Defaults:Settings: RulesAllowed...
[freeside.git] / FS / FS / ClientAPI_SessionCache.pm
index b722484..d72fb39 100644 (file)
@@ -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 {