getOpcodeCacheStatus(); # TODO: The results will be wrong for WinCache # The following is the relevant snippet from # admin/include_performance.php $txtUsed = tr('Used'); $txtAvailable = tr('Available'); if ($opcode_cache == 'WinCache') { // Somehow WinCache seems to flip the representations $txtAvailable = tr('Used'); $txtUsed = tr('Available'); } $result = []; $result['OPCodeCache'] = $opcode_stats['opcode_cache']; $result['OpCodeStats'] = $opcode_stats; include_once('installer/installlib.php'); $installer = Installer::getInstance(); $result['DbRequiresUpdate'] = $installer->requiresUpdate(); $result['SearchIndexRebuildLast'] = $tikilib->get_preference('unified_last_rebuild'); $display = json_encode($result); echo $display;