Skip to content

Commit

Permalink
Fixed issue of Lifetime update syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
nirav-kadiya committed Dec 11, 2018
1 parent c442739 commit 146f74a
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 146f74a

Please sign in to comment.