Forráskód Böngészése

Admin\Maintenance: Resets the contents of the opcode cache after clearing the engine cache

Is it necessary to do this?
Visman 1 éve
szülő
commit
40563b4ffc
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      app/Models/Pages/Admin/Maintenance.php

+ 4 - 0
app/Models/Pages/Admin/Maintenance.php

@@ -331,6 +331,10 @@ class Maintenance extends Admin
             throw new RuntimeException('Unable to clear cache');
         }
 
+        if (\function_exists('\\opcache_reset')) {
+            \opcache_reset();
+        }
+
         return $this->c->Redirect->page('AdminMaintenance')->message('Clear cache redirect', FORK_MESS_SUCC);
     }
 }