Skip to content
Snippets Groups Projects
Commit 9acc75ac authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Test if Zend OPCache is installed

parent da6a1d66
No related branches found
No related tags found
No related merge requests found
...@@ -108,6 +108,14 @@ if (! $foundcache && $test) ...@@ -108,6 +108,14 @@ if (! $foundcache && $test)
$foundcache++; $foundcache++;
print img_picto('','tick.png').' '.$langs->trans("EAcceleratorInstalled"); print img_picto('','tick.png').' '.$langs->trans("EAcceleratorInstalled");
} }
$test=function_exists('opcache_get_status');
if (! $foundcache && $test)
{
$foundcache++;
print img_picto('','tick.png').' '.$langs->trans("ZendOPCacheInstalled"); // Should be by defautl starting with PHP 5.5
//$tmp=opcache_get_status();
//var_dump($tmp);
}
$test=function_exists('apc_cache_info'); $test=function_exists('apc_cache_info');
if (! $foundcache && $test) if (! $foundcache && $test)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment