. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 198.54.115.242 / Your IP :
216.73.216.33 [
Web Server : LiteSpeed System : Linux server233.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : imereohc ( 2529) PHP Version : 8.2.30 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/imereohc/test.imera.ai/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
namespace W3TC;
class SystemOpCache_Plugin_Admin {
function run() {
if ( Util_Installed::opcache() || Util_Installed::apc_opcache() ) {
add_filter( 'w3tc_admin_bar_menu',
array( $this, 'w3tc_admin_bar_menu' ) );
}
add_filter( 'w3tc_admin_actions',
array( $this, 'w3tc_admin_actions' ) );
add_action( 'w3tc_settings_general_boxarea_system_opcache',
array( $this, 'w3tc_settings_general_boxarea_system_opcache' ) );
}
public function w3tc_settings_general_anchors( $anchors ) {
$anchors[] = array( 'id' => 'system_opcache', 'text' => 'System OPcache' );
return $anchors;
}
static public function w3tc_admin_actions( $handlers ) {
$handlers['opcache'] = 'SystemOpCache_AdminActions';
return $handlers;
}
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 w3tc_admin_bar_menu( $menu_items ) {
$menu_items['20910.system_opcache'] = array(
'id' => 'w3tc_flush_opcache',
'parent' => 'w3tc_flush',
'title' => __( 'Opcode Cache', 'w3-total-cache' ),
'href' => Util_Ui::url( array( 'page' => 'w3tc_dashboard', 'w3tc_opcache_flush' => '' ) ),
);
return $menu_items;
}
}