mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 09:30:34 +01:00
Merge pull request #4902 from MoleDJ/patch-1
[ticket/15320] Redis cache does not save keys withouth expiration
This commit is contained in:
commit
f6166225cf
4
phpBB/phpbb/cache/driver/redis.php
vendored
4
phpBB/phpbb/cache/driver/redis.php
vendored
@ -137,6 +137,10 @@ class redis extends \phpbb\cache\driver\memory
|
||||
*/
|
||||
function _write($var, $data, $ttl = 2592000)
|
||||
{
|
||||
if ($ttl == 0)
|
||||
{
|
||||
return $this->redis->set($var, $data);
|
||||
}
|
||||
return $this->redis->setex($var, $ttl, $data);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user