Fix: Stat page show no cache when there is, if user was using apc.
This commit is contained in:
parent
b11ef37c58
commit
2a6b2a4540
@ -85,18 +85,35 @@ print '</br>';
|
|||||||
// OPCode cache
|
// OPCode cache
|
||||||
print '<br>';
|
print '<br>';
|
||||||
print '<strong>'.$langs->trans("OPCodeCache").'</strong>: ';
|
print '<strong>'.$langs->trans("OPCodeCache").'</strong>: ';
|
||||||
$test1=function_exists('xcache_info');
|
$foundcache=0;
|
||||||
if ($test1)
|
$test=function_exists('xcache_info');
|
||||||
|
if (! $foundcache && $test)
|
||||||
{
|
{
|
||||||
|
$foundcache++;
|
||||||
print img_picto('','tick.png').' '.$langs->trans("XCacheInstalled");
|
print img_picto('','tick.png').' '.$langs->trans("XCacheInstalled");
|
||||||
print ' '.$langs->trans("MoreInformation").' <a href="'.DOL_URL_ROOT.'/admin/system/xcache.php'.'">Xcache admin page</a>';
|
print ' '.$langs->trans("MoreInformation").' <a href="'.DOL_URL_ROOT.'/admin/system/xcache.php'.'">Xcache admin page</a>';
|
||||||
}
|
}
|
||||||
else
|
$test=function_exists('eaccelerator_info');
|
||||||
|
if (! $foundcache && $test)
|
||||||
{
|
{
|
||||||
$test2=function_exists('eaccelerator_info');
|
$foundcache++;
|
||||||
if ($test2) print img_picto('','tick.png').' '.$langs->trans("EAcceleratorInstalled");
|
print img_picto('','tick.png').' '.$langs->trans("EAcceleratorInstalled");
|
||||||
else print $langs->trans("NoOPCodeCacheFound");
|
|
||||||
}
|
}
|
||||||
|
$test=function_exists('apc_cache_info');
|
||||||
|
if (! $foundcache && $test)
|
||||||
|
{
|
||||||
|
//var_dump(apc_cache_info());
|
||||||
|
if (ini_get('apc.enabled'))
|
||||||
|
{
|
||||||
|
$foundcache++;
|
||||||
|
print img_picto('','tick.png').' '.$langs->trans("APCInstalled");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print img_picto('','warning').' '.$langs->trans("APCCacheInstalledButDisabled");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (! $foundcache) print $langs->trans("NoOPCodeCacheFound");
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
// HTTPCacheStaticResources
|
// HTTPCacheStaticResources
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user