HEX
Server: LiteSpeed
System: Linux cg.mitralhost.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
User: foofelco (1828)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/foofelco/public_html/wp-content/plugins/hummingbird-performance/core/advanced-cache.php
<?php
/**
 * Hummingbird Advanced Tools module
 *
 * @package Hummingbird
 */

if ( ! defined( 'ABSPATH' ) ) {
	die();
}

/**
 * Load necessary modules for caching.
 */

if ( ! class_exists( 'Hummingbird\\Core\\Modules\\Page_Cache' ) ) {
	if ( defined( 'WP_ADMIN' ) && WP_ADMIN ) {
		return;
	}

	if ( is_dir( WP_CONTENT_DIR . '/plugins/wp-hummingbird/' ) ) {
		$plugin_path = WP_CONTENT_DIR . '/plugins/wp-hummingbird/';
	} elseif ( is_dir( WP_CONTENT_DIR . '/plugins/hummingbird-performance/' ) ) {
		$plugin_path = WP_CONTENT_DIR . '/plugins/hummingbird-performance/';
	} else {
		return;
	}

	include_once $plugin_path . 'core/class-utils.php';
	include_once $plugin_path . 'core/class-module.php';
	include_once $plugin_path . 'core/traits/trait-wpconfig.php';
	include_once $plugin_path . 'core/modules/class-page-cache.php';

	if ( ! method_exists( 'Hummingbird\\Core\\Modules\\Page_Cache', 'serve_cache' ) ) {
		return;
	}

	define( 'WPHB_ADVANCED_CACHE', true );
	\Hummingbird\Core\Modules\Page_Cache::serve_cache();
}