Skip to content

Commit a3fe7c1

Browse files
ENGCOM-4183: [Backport] Fixed - Lifetime update syntax error #13309 #21078
- Merge Pull Request #21078 from ssp58bleuciel/magento2:2.2-develop-PR-port-19634 - Merged commits: 1. 4cb01ef 2. 5ecc6b2
2 parents 76fcd12 + 5ecc6b2 commit a3fe7c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
* ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2828
*/
2929

30-
/**
31-
* Database cache backend
32-
*/
3330
namespace Magento\Framework\Cache\Backend;
3431

32+
/**
33+
* Database cache backend.
34+
*/
3535
class Database extends \Zend_Cache_Backend implements \Zend_Cache_Backend_ExtendedInterface
3636
{
3737
/**
@@ -139,7 +139,7 @@ protected function _getTagsTable()
139139
*
140140
* Note : return value is always "string" (unserialization is done by the core not by the backend)
141141
*
142-
* @param string $id Cache id
142+
* @param string $id Cache id
143143
* @param boolean $doNotTestCacheValidity If set to true, the cache validity won't be tested
144144
* @return string|false cached datas
145145
*/
@@ -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)