Created
August 10, 2019 03:28
Star
You must be signed in to star a gist
Hummingbird plugin created advanced-cache.php dropin file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hummingbird Advanced Tools module | |
* | |
* @package Hummingbird | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
die(); | |
} | |
/** | |
* Load necessary modules for caching. | |
*/ | |
if ( ! class_exists( 'WP_Hummingbird_Module_Page_Cache' ) ) { | |
if ( is_dir( WP_CONTENT_DIR . '/plugins/wp-hummingbird/' ) ) { | |
$path = WP_CONTENT_DIR . '/plugins/wp-hummingbird/'; | |
} else { | |
$path = WP_CONTENT_DIR . '/plugins/hummingbird-performance/'; | |
} | |
include_once $path . 'core/class-utils.php'; | |
include_once $path . 'core/class-abstract-module.php'; | |
include_once $path . 'core/modules/class-module-page-cache.php'; | |
if ( ! method_exists( 'WP_Hummingbird_Module_Page_Cache', 'serve_cache' ) ) { | |
return; | |
} | |
define( 'WPHB_ADVANCED_CACHE', true ); | |
WP_Hummingbird_Module_Page_Cache::serve_cache(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://wordpress.org/support/topic/advanced-cache-php-file-in-wp-content-directory/
https://plugins.svn.wordpress.org/hummingbird-performance/trunk/core/advanced-cache.php