aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMáté Bartus <CHItA@users.noreply.github.com>2017-09-07 15:09:08 +0200
committerGitHub <noreply@github.com>2017-09-07 15:09:08 +0200
commitf6166225cfea68e5b7f8dd1e6ef7df8e4fd1e8b3 (patch)
treeb4f8b9d47103742b16e68dd6ac308041cfa1ee2f /phpBB/phpbb
parentda357f80f859844bcf0323201045ca082b9d68e7 (diff)
parent4e5fd9a6e925487fe424538f4a2e6905f00da43d (diff)
downloadforums-f6166225cfea68e5b7f8dd1e6ef7df8e4fd1e8b3.tar
forums-f6166225cfea68e5b7f8dd1e6ef7df8e4fd1e8b3.tar.gz
forums-f6166225cfea68e5b7f8dd1e6ef7df8e4fd1e8b3.tar.bz2
forums-f6166225cfea68e5b7f8dd1e6ef7df8e4fd1e8b3.tar.xz
forums-f6166225cfea68e5b7f8dd1e6ef7df8e4fd1e8b3.zip
Merge pull request #4902 from MoleDJ/patch-1
[ticket/15320] Redis cache does not save keys withouth expiration
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/cache/driver/redis.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/phpbb/cache/driver/redis.php b/phpBB/phpbb/cache/driver/redis.php
index eda774491c..eaeb529918 100644
--- a/phpBB/phpbb/cache/driver/redis.php
+++ b/phpBB/phpbb/cache/driver/redis.php
@@ -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);
}