PluginProbe
ezCache / 1.2
ezCache v1.2
2.6.5 2.6.4 2.6.2 2.6.3 2.6.1 2.6.0 2.5.6 2.5.5 2.5.4 2.5.3 2.5.2 2.5.1 2.5 2.2.1 2.2.2 trunk 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.3 1.3.1 1.3.10 1.3.11 All 49 releases
ezcache / advanced-cache.php

advanced-cache.php in ezCache 1.2, at advanced-cache.php

24 lines 588 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * ezCache Advanced Cache
4 */
5
6 // require utilities functions from the plugin
7 /** @noinspection PhpIncludeInspection */
8 require_once __DIR__ . '/plugins/ezcache/vendor/autoload.php';
9 global $ezcache;
10
11 /** @noinspection PhpFullyQualifiedNameUsageInspection */
12 $ezcache = \Upress\EzCache\Cache::instance();
13 $ezcache->maybe_serve_cached_data();
14
15 /**
16 * Start saving the cache file
17 * This function is called at wp-settings.php when WP_CACHE is true in wp-config.php
18 */
19 function wp_cache_postload() {
20 global $ezcache;
21
22 $ezcache->maybe_write_cache_file();
23 }
24