diff --git a/System/Cache/Redis.php b/System/Cache/Redis.php index 458e7c4c..92500c7c 100644 --- a/System/Cache/Redis.php +++ b/System/Cache/Redis.php @@ -38,6 +38,7 @@ class Redis extends Component Event::on(Event::SYSTEM_RESOURCE_CLEAN, [$this, 'destroy']); Event::on(Event::SYSTEM_RESOURCE_RELEASES, [$this, 'release']); Event::on(Event::SERVER_WORKER_START, [$this, 'createPool']); + Event::on(Event::SERVER_TASK_START, [$this, 'createPool']); }