Improve session destroy propagation (#2758)

This commit is contained in:
Yadd 2022-07-28 11:35:48 +02:00
parent 61a913b8c0
commit 59c781b393
2 changed files with 3 additions and 2 deletions

View File

@ -56,7 +56,7 @@ sub materialize {
# Get session from cache
my $id = $session->{data}->{_session_id};
if ( $self->cache->get($id) ) {
if ( !$self->{args}->{noCache} and $self->cache->get($id) ) {
$session->{serialized} = $self->cache->get($id);
return;
}

View File

@ -213,7 +213,8 @@ sub update {
return 0;
}
my $data = $self->_tie_session($tieOptions);
my $data = $self->_tie_session(
{ ( $tieOptions ? %$tieOptions : () ), noCache => 1 } );
if ($data) {
foreach ( keys %$infos ) {