-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass-gambit-cache.php
More file actions
53 lines (42 loc) · 1.45 KB
/
class-gambit-cache.php
File metadata and controls
53 lines (42 loc) · 1.45 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
require_once( 'gambit_cache/lib/util.php' );
require_once( 'gambit_cache/lib/class-js.php' );
require_once( 'gambit_cache/lib/class-css.php' );
require_once( 'gambit_cache/lib/class-cache-activation.php' );
require_once( 'gambit_cache/lib/class-cache-deactivation.php' );
require_once( 'gambit_cache/lib/class-admin-page.php' );
require_once( 'gambit_cache/lib/class-page-cache.php' );
require_once( 'gambit_cache/lib/class-page-cache-cleaner.php' );
require_once( 'gambit_cache/lib/class-object-cache-cleaner.php' );
require_once( 'gambit_cache/lib/class-minify.php' );
require_once( 'gambit_cache/lib/class-minify-cleaner.php' );
require_once( 'gambit_cache/lib/class-sprite.php' );
require_once( 'gambit_cache/lib/class-debug.php' );
// Initializes Titan Framework
require_once( 'titan-framework-checker.php' );
if ( ! class_exists( 'GambitCache' ) ) {
class GambitCache {
/**
* Hook into WordPress
*/
function __construct() {
new GambitCacheAdminPage();
new GambitCacheActivation();
new GambitCacheDeactivation();
new GambitCachePageCache();
new GambitCacheMinify();
new GambitCachePageCacheCleaner();
new GambitCacheObjectCacheCleaner();
new GambitCacheMinifyCleaner();
new GambitCacheSprite();
new GambitCacheDebug();
}
}
new GambitCache();
}
add_action( 'wp_footer', 'print_queries', 1000 );
function print_queries() {
?>
<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop( 1 ); ?> seconds. -->
<?php
}