-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp-apc-clear.php
34 lines (28 loc) · 897 Bytes
/
wp-apc-clear.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
<?php
/*
Plugin Name: WP APC Clear
Plugin URI: https://github.com/wpbacon/wp-apc-clear
Description: This is a simple, single purpose plugin to clear the APC cache.
Author: Robert Neu
Version: 0.2.1
Author URI: http://wpbacon.com
License: GPL2+
*/
/**
* @package WP APC Clear
* @version 0.2.1
* @author TJ Stein <http://tjstein.com/articles/apc-cache-clear-plugin-for-wordpress/>
* @author Kaspars Dambis <http://kaspars.net/blog/wordpress/clear-apc-cache-button-for-wordpress>
* @author Robert Neu <http://wpbacon.com>
*/
// Exit if accessed directly
defined( 'WPINC' ) or die;
// Grab this directory
$_wpapcc_dir = dirname( __FILE__ ) . '/';
// Include our core plugin files.
include( $_wpapcc_dir . 'includes/install.php' );
include( $_wpapcc_dir . 'includes/plugin.php' );
// Clean up
unset( $_wpapcc_dir );
// Instantiate our class
$_wp_apc_clear = WP_APC_Clear::getInstance();