Skip to content

Commit

Permalink
Append session_duration if set [issue session_duration not used in set
Browse files Browse the repository at this point in the history
…PerlDancer#8]

Signed-off-by: Dave Smith <[email protected]>
  • Loading branch information
DaveSophoServices committed Jan 23, 2020
1 parent 51d3080 commit f99bdbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Dancer2/Session/Memcached.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ sub _flush {
croak "Memcache cluster unreachable _flush"
if $self->fatal_cluster_unreachable && not keys %{$self->_memcached->stats(['misc'])};

# append session_duration if set
push @_, $self->session_duration if $self->session_duration and $#_ < 2;

return $self->_memcached->set( @_ );
}

Expand Down

0 comments on commit f99bdbf

Please sign in to comment.