mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Ignore counter cache also
This commit is contained in:
parent
c0ee49fe88
commit
5e89e893f2
1 changed files with 5 additions and 1 deletions
|
@ -118,7 +118,11 @@ class DatabaseSession implements CakeSessionHandlerInterface {
|
|||
$record = compact('id', 'data', 'expires');
|
||||
$record[$this->_model->primaryKey] = $id;
|
||||
|
||||
$options = array('validate' => false, 'callbacks' => false);
|
||||
$options = array(
|
||||
'validate' => false,
|
||||
'callbacks' => false,
|
||||
'counterCache' => false
|
||||
);
|
||||
try {
|
||||
return $this->_model->save($record, $options);
|
||||
} catch (PDOException $e) {
|
||||
|
|
Loading…
Reference in a new issue