From 8096d02e8f9bef0fd26a276c4d93a715dcec19a2 Mon Sep 17 00:00:00 2001 From: Nebojsa Cvetkovic Date: Mon, 21 Oct 2019 16:41:12 +0100 Subject: cache: redis: Check version of redis not phpredis PhpRedis is installed as redis. Change matches the check in the Redis session driver. --- system/libraries/Cache/drivers/Cache_redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php index 3c4c23d3b..9dbe52844 100644 --- a/system/libraries/Cache/drivers/Cache_redis.php +++ b/system/libraries/Cache/drivers/Cache_redis.php @@ -98,7 +98,7 @@ class CI_Cache_redis extends CI_Driver return; } - isset(static::$_delete_name) OR static::$_delete_name = version_compare(phpversion('phpredis'), '5', '>=') + isset(static::$_delete_name) OR static::$_delete_name = version_compare(phpversion('redis'), '5', '>=') ? 'del' : 'delete'; -- cgit v1.2.3-24-g4f1b