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
|
# Hide Lemonldap::NG cookie
|
||||||
$class->hideCookie;
|
$class->hideCookie;
|
||||||
|
|
||||||
# Cleanup and log
|
# Log
|
||||||
$apacheRequest->push_handlers(
|
$apacheRequest->push_handlers(
|
||||||
PerlLogHandler => sub { $class->logGranted( $uri, $datas ); DECLINED },
|
PerlLogHandler => sub { $class->logGranted( $uri, $datas ); DECLINED },
|
||||||
);
|
);
|
||||||
$apacheRequest->push_handlers(
|
|
||||||
PerlCleanupHandler => sub { $class->cleanLocalStorage(@_); DECLINED },
|
|
||||||
);
|
|
||||||
|
|
||||||
# Catch POST rules
|
# Catch POST rules
|
||||||
if ( defined( $transform->{$uri} ) ) {
|
if ( defined( $transform->{$uri} ) ) {
|
||||||
@ -1203,18 +1200,6 @@ sub status($$) {
|
|||||||
return OK;
|
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;
|
1;
|
||||||
__END__
|
__END__
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user