Skip to content

Commit

Permalink
Fix ComboSession implementation
Browse files Browse the repository at this point in the history
The ComboSession example code is broken: since Cache::gc() returns void, parent::gc() is never called and garbage collection is never executed.
  • Loading branch information
jiru authored Feb 3, 2025
1 parent 8485dee commit faa92a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion en/development/sessions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ something like::
// Removes expired sessions.
public function gc($expires = null)
{
return Cache::gc($this->cacheKey) && parent::gc($expires);
Cache::gc($this->cacheKey);
return parent::gc($expires);
}
}

Expand Down

0 comments on commit faa92a6

Please sign in to comment.