Skip to content

Commit bad3f0c

Browse files
authored
ENGCOM-3666: Fixed - Lifetime update syntax error #13309 #19634
2 parents d42db33 + f7d1054 commit bad3f0c

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)