Skip to content

Commit

Permalink
ENGCOM-3666: Fixed - Lifetime update syntax error #13309 #19634
Browse files Browse the repository at this point in the history
 - Merge Pull Request #19634 from ssp58bleuciel/magento2:fixed-issue-13309
 - Merged commits:
   1. 146f74a
  • Loading branch information
magento-engcom-team committed Dec 11, 2018
2 parents f77f96b + 146f74a commit 4964f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Cache/Backend/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public function touch($id, $extraLifetime)
return $this->_getConnection()->update(
$this->_getDataTable(),
['expire_time' => new \Zend_Db_Expr('expire_time+' . $extraLifetime)],
['id=?' => $id, 'expire_time = 0 OR expire_time>' => time()]
['id=?' => $id, 'expire_time = 0 OR expire_time>?' => time()]
);
} else {
return true;
Expand Down

0 comments on commit 4964f0e

Please sign in to comment.