diff options
Diffstat (limited to 'phpBB/phpbb/cache')
| -rw-r--r-- | phpBB/phpbb/cache/driver/redis.php | 4 | 
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);  	} | 
