summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorNebojsa Cvetkovic <nebkat@gmail.com>2019-10-21 17:41:12 +0200
committerGitHub <noreply@github.com>2019-10-21 17:41:12 +0200
commit8096d02e8f9bef0fd26a276c4d93a715dcec19a2 (patch)
treedb61bdb9cf03d20041535ef8c7dcab445c51fb4e /system/libraries
parent92fc1c0f5a08e396f2e008f32331214db0ece727 (diff)
cache: redis: Check version of redis not phpredis
PhpRedis is installed as redis. Change matches the check in the Redis session driver.
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php2
1 files changed, 1 insertions, 1 deletions
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';