Remove Cache::Cache->purge() call (keys are checked by get())
This commit is contained in:
parent
615f0ba259
commit
ec71ba81e3
@ -1065,13 +1065,10 @@ sub run ($$) {
|
||||
# Hide Lemonldap::NG cookie
|
||||
$class->hideCookie;
|
||||
|
||||
# Cleanup and log
|
||||
# Log
|
||||
$apacheRequest->push_handlers(
|
||||
PerlLogHandler => sub { $class->logGranted( $uri, $datas ); DECLINED },
|
||||
);
|
||||
$apacheRequest->push_handlers(
|
||||
PerlCleanupHandler => sub { $class->cleanLocalStorage(@_); DECLINED },
|
||||
);
|
||||
|
||||
# Catch POST rules
|
||||
if ( defined( $transform->{$uri} ) ) {
|
||||
@ -1203,18 +1200,6 @@ sub status($$) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
#################
|
||||
# OTHER METHODS #
|
||||
#################
|
||||
|
||||
## @rmethod protected int cleanLocalStorage()
|
||||
# Clean expired values from the local cache.
|
||||
# @return Apache2::Const::DECLINED
|
||||
sub cleanLocalStorage {
|
||||
$refLocalStorage->purge() if ($refLocalStorage);
|
||||
return DECLINED;
|
||||
}
|
||||
|
||||
1;
|
||||
__END__
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user