Try to get deleted session count from Session module (#2428)
This commit is contained in:
parent
87f27fe0d7
commit
ac5ce7ed97
|
@ -144,8 +144,7 @@ for my $options (@backends) {
|
||||||
next if ( $options->{backend} eq "Apache::Session::Memcached" );
|
next if ( $options->{backend} eq "Apache::Session::Memcached" );
|
||||||
my @t;
|
my @t;
|
||||||
if ( $options->{backend}->can('deleteIfLowerThan') ) {
|
if ( $options->{backend}->can('deleteIfLowerThan') ) {
|
||||||
next
|
my ( $success, $rows ) = $options->{backend}->deleteIfLowerThan(
|
||||||
if $options->{backend}->deleteIfLowerThan(
|
|
||||||
$options,
|
$options,
|
||||||
{
|
{
|
||||||
not => { '_session_kind' => 'Persistent' },
|
not => { '_session_kind' => 'Persistent' },
|
||||||
|
@ -158,7 +157,14 @@ for my $options (@backends) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($success) {
|
||||||
|
if ($rows) {
|
||||||
|
$nb_purged += $rows;
|
||||||
|
}
|
||||||
|
next;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get all expired sessions
|
# Get all expired sessions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user