C:\xampp\htdocs\landing\wp-content\plugins\hummingbird-performance\core\advanced-cache.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?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_dirWP_CONTENT_DIR '/plugins/wp-hummingbird/' ) ) {
        
$plugin_path WP_CONTENT_DIR '/plugins/wp-hummingbird/';
    } elseif ( 
is_dirWP_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();
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586