mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
require redis and use reids to check ReAnnounce
This commit is contained in:
@@ -21,8 +21,10 @@ class class_cache_redis {
|
||||
function __construct() {
|
||||
$success = $this->connect(); // Connect to Redis
|
||||
if ($success) {
|
||||
do_log("Redis is enabled!");
|
||||
$this->isEnabled = 1;
|
||||
} else {
|
||||
do_log("Redis is disabled!");
|
||||
$this->isEnabled = 0;
|
||||
}
|
||||
}
|
||||
@@ -61,6 +63,7 @@ class class_cache_redis {
|
||||
}
|
||||
return $connectResult;
|
||||
} catch (\Exception $exception) {
|
||||
do_log("Redis connect fail: " . $exception->getMessage(), 'error');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user