Skip to content

Commit 146f74a

Browse files
committed
Fixed issue of Lifetime update syntax error
1 parent c442739 commit 146f74a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Cache/Backend/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public function touch($id, $extraLifetime)
432432
return $this->_getConnection()->update(
433433
$this->_getDataTable(),
434434
['expire_time' => new \Zend_Db_Expr('expire_time+' . $extraLifetime)],
435-
['id=?' => $id, 'expire_time = 0 OR expire_time>' => time()]
435+
['id=?' => $id, 'expire_time = 0 OR expire_time>?' => time()]
436436
);
437437
} else {
438438
return true;

0 commit comments

Comments
 (0)