git 2 years ago
parent
commit
4328c08e01
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Home/Lib/Action/InotifyMonitor.php

+ 3 - 0
Home/Lib/Action/InotifyMonitor.php

@@ -178,6 +178,7 @@ class InotifyMonitor {
                                          //写入redis
                                          try
                                          {
+
                                             $this->set_redis($file);
                                          }catch(Exception $e)
                                          {
@@ -213,6 +214,8 @@ class InotifyMonitor {
               */
              public function set_redis($data)
              {
+                $this->redis->ping();
+                
                 if(strstr($data,'.zip'))
                 {   
                     if(rename($data,$data.'.redis'))