public function w3tc_settings_general_boxarea_system_opcache() { $opcode_engine = 'Not Available'; $validate_timestamps = false; if (Util_Installed::opcache()) { $opcode_engine = 'OPcache'; $validate_timestamps = Util_Installed::is_opcache_validate_timestamps(); } else { if (Util_Installed::apc_opcache()) { $opcode_engine = 'APC'; $engine_status = Util_Installed::is_apc_validate_timestamps(); } } include W3TC_DIR . '/SystemOpCache_GeneralPage_View.php'; }
public function flush() { if (Util_Installed::opcache()) { return opcache_reset(); } else { if (Util_Installed::apc_opcache()) { $result = apc_clear_cache(); // that doesnt clear user cache $result |= apc_clear_cache('opcode'); // extra return $result; } } return false; }
_e('Not installed', 'w3-total-cache'); ?> </code> <?php } ?> <span class="w3tc-self-test-hint"><?php _e('(required for compression support)', 'w3-total-cache'); ?> </span> </li> <li> Opcode cache: <?php if (Util_Installed::opcache()) { ?> <code><?php _e('Installed (OPCache)', 'w3-total-cache'); ?> </code> <?php } elseif (Util_Installed::apc()) { ?> <code><?php _e('Installed (APC)', 'w3-total-cache'); ?> </code> <?php } elseif (Util_Installed::eaccelerator()) { ?>