Remove session cache default namespace from code also in purgeLocalCache

+ udpate comments (Lemonldap-499)
environments/ppa-mbqj77/deployments/1
François-Xavier Deltombe 13 years ago
parent 165d287862
commit 203b4f5d9c
  1. 4
      lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm
  2. 1
      lemonldap-ng-handler/example/scripts/purgeLocalCache
  3. 2
      lemonldap-ng-handler/t/01-Lemonldap-NG-Handler-Simple.t
  4. 2
      lemonldap-ng-handler/t/11-Lemonldap-NG-Handler-Status.t
  5. 2
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Notifications.pm
  6. 4
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Sessions.pm

@ -19,7 +19,7 @@ use Config::IniFiles;
#inherits Lemonldap::NG::Common::Conf::SOAP
#inherits Lemonldap::NG::Common::Conf::LDAP
our $VERSION = '1.2.1';
our $VERSION = '1.2.2';
our $msg;
our $iniObj;
@ -396,7 +396,7 @@ Web-SSO configuration.
# To use local cache, set :
localStorage => "Cache::FileCache",
localStorageOptions = {
'namespace' => 'lemonldap-ng',
'namespace' => 'lemonldap-ng-config',
'default_expires_in' => 600,
'directory_umask' => '007',
'cache_root' => '/tmp',

@ -25,7 +25,6 @@ my $conf = $lmconf->getLocalConf(HANDLERSECTION)
print "Configuration loaded\n" if $debug;
exit 0 unless ( $conf->{localStorage} );
eval "require $conf->{localStorage}";
$conf->{localStorageOptions}->{namespace} ||= "lemonldap";
$conf->{localStorageOptions}->{default_expires_in} ||= 600;
my $c = $conf->{localStorage}->new( $conf->{localStorageOptions} );
$c->purge();

@ -18,7 +18,7 @@ ok(
$h->localInit(
{
localStorage => 'Cache::FileCache',
localStorageOptions => { 'namespace' => 'lemonldap-ng', },
localStorageOptions => { 'namespace' => 'lemonldap-ng-sessions', },
}
),
'localInit'

@ -26,7 +26,7 @@ ok(
$h->localInit(
{
localStorage => 'Cache::FileCache',
localStorageOptions => { 'namespace' => 'lemonldap-ng', },
localStorageOptions => { 'namespace' => 'lemonldap-ng-sessions', },
status => 1
}
),

@ -634,7 +634,7 @@ notifications
our $cgi ||= Lemonldap::NG::Manager::Notifications->new({
localStorage => "Cache::FileCache",
localStorageOptions => {
'namespace' => 'lemonldap-ng',
'namespace' => 'lemonldap-ng-config',
'default_expires_in' => 600,
'directory_umask' => '007',
'cache_root' => '/tmp',

@ -24,7 +24,7 @@ use utf8;
our $whatToTrace;
*whatToTrace = \$Lemonldap::NG::Handler::_CGI::whatToTrace;
our $VERSION = '1.2.1';
our $VERSION = '1.2.2';
our @ISA = qw(
Lemonldap::NG::Handler::CGI
@ -872,7 +872,7 @@ sessions
our $cgi ||= Lemonldap::NG::Manager::Sessions->new({
localStorage => "Cache::FileCache",
localStorageOptions => {
'namespace' => 'lemonldap-ng',
'namespace' => 'lemonldap-ng-config',
'default_expires_in' => 600,
'directory_umask' => '007',
'cache_root' => '/tmp',

Loading…
Cancel
Save