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';
 }
예제 #2
0
 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;
 }