Fix cache remove on logout (#2387)
This commit is contained in:
parent
66eb7efd67
commit
8756a2dd68
|
@ -826,10 +826,13 @@ sub localUnlog {
|
||||||
if ( $id //= $class->fetchId($req) ) {
|
if ( $id //= $class->fetchId($req) ) {
|
||||||
|
|
||||||
# Delete local cache
|
# Delete local cache
|
||||||
if ( $class->tsv->{refLocalStorage}
|
if ( $class->tsv->{sessionCacheModule} ) {
|
||||||
and $class->tsv->{refLocalStorage}->get($id) )
|
my $module = $class->tsv->{sessionCacheModule};
|
||||||
{
|
my $options = $class->tsv->{sessionCacheOptions};
|
||||||
$class->tsv->{refLocalStorage}->remove($id);
|
my $cache = $module->new($options);
|
||||||
|
if ( $cache->get($id) ) {
|
||||||
|
$cache->remove($id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user