diff --git a/plugins/RedisCache/RedisCachePlugin.php b/plugins/RedisCache/RedisCachePlugin.php index 8d4bfa98ac..f2284dd8cd 100644 --- a/plugins/RedisCache/RedisCachePlugin.php +++ b/plugins/RedisCache/RedisCachePlugin.php @@ -93,7 +93,7 @@ class RedisCachePlugin extends Plugin return true; } - if ($ret->getPayload() === "OK") { + if (is_int($ret) || $ret->getPayload() === "OK") { $success = true; return false; }