After updating my app from 2.0.13 to 3.0 and php from 5.6 to 7.0, my logout function stop working, unless I comment the code used to clear caches
public function endAction()
{
$keys = $this->di->get('modelsCache')->queryKeys(); // --> this line cause problem
foreach ($keys as $k) {
$this->di->get('modelsCache')->delete($k);
}
$this->session->remove('logging');
$this->session->remove('auth');
$this->flash->success('à bientôt!');
return $this->response->redirect('index');
}
php logs no error...instead of being logged out and redirected to login page, a redirection occur to the same page acl do when not allowed, and session is not destroyed
sidenote: except that, everything is really running faster..