From beebaccc0a06c22b4af06ec913e501c7e116c60e Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Fri, 1 Nov 2019 12:24:03 +0200 Subject: [ci skip] Merge pull request #5861 from nebkat/patch-1 cache: redis: Check version of redis not phpredis --- system/libraries/Cache/drivers/Cache_redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries') diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php index 0539e2cdf..f0a72ee3c 100644 --- a/system/libraries/Cache/drivers/Cache_redis.php +++ b/system/libraries/Cache/drivers/Cache_redis.php @@ -113,7 +113,7 @@ class CI_Cache_redis extends CI_Driver if ( ! isset(static::$_delete_name, static::$_sRemove_name)) { - if (version_compare(phpversion('phpredis'), '5', '>=')) + if (version_compare(phpversion('redis'), '5', '>=')) { static::$_delete_name = 'del'; static::$_sRemove_name = 'sRem'; -- cgit v1.2.3-24-g4f1b