| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) die('No direct access allowed'); |
| 4 |
|
| 5 |
/** |
| 6 |
* File based page cache drop in |
| 7 |
*/ |
| 8 |
require_once(dirname(__FILE__) . '/file-based-page-cache-functions.php'); |
| 9 |
|
| 10 |
if (!defined('WPO_CACHE_DIR')) define('WPO_CACHE_DIR', untrailingslashit(WP_CONTENT_DIR) . '/wpo-cache'); |
| 11 |
|
| 12 |
/** |
| 13 |
* Load extensions. |
| 14 |
*/ |
| 15 |
wpo_cache_load_extensions(); |
| 16 |
|
| 17 |
/** |
| 18 |
* Action triggered when the cache extensions are all loaded. Allows to execute code depending on an other extension, without knowing the order in which the files are loaded. |
| 19 |
*/ |
| 20 |
do_action('wpo_cache_extensions_loaded'); |
| 21 |
|
| 22 |
if (true === wpo_can_serve_from_cache()) { |
| 23 |
wpo_serve_cache(); |
| 24 |
} |
| 25 |
|