Do not use cached configuration for manager

environments/ppa-mbqj77/deployments/1
Xavier Guimard 9 years ago
parent cef5f5eb42
commit f654aa6a23
  1. 3
      lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm
  2. 3
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm

@ -171,7 +171,8 @@ sub getConf {
$r = $self->getDBConf($args);
}
else {
eval { $r = $self->{refLocalStorage}->get('conf') } if ($>);
eval { $r = $self->{refLocalStorage}->get('conf') }
if ( $> and not $args->{noCache} );
$msg = "Warn: $@" if ($@);
if ( ref($r)
and $r->{cfgNum}

@ -126,7 +126,8 @@ sub getConfByNum {
}
else {
$tmp =
$self->confAcc->getConf( { cfgNum => $cfgNum, raw => 1, @args } );
$self->confAcc->getConf(
{ cfgNum => $cfgNum, raw => 1, noCache => 1, @args } );
return undef unless ( $tmp and ref($tmp) and %$tmp );
}
$self->currentConf($tmp);

Loading…
Cancel
Save