From 8413a4ec92a748991d857248f92a84f2084d0529 Mon Sep 17 00:00:00 2001 From: Lauris Binde Date: Wed, 29 Jan 2020 10:44:14 +0100 Subject: [PATCH] Improve Opcache detection Improve Opcache detection by checking if extension is loaded, as opcache_get_status() is commonly disabled on shared hosting servers --- apps/settings/lib/Controller/CheckSetupController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index f323590ad8..0e4dfa5516 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -516,7 +516,7 @@ Raw output } protected function hasOpcacheLoaded(): bool { - return function_exists('opcache_get_status'); + return extension_loaded('Zend OPcache'); } /**