-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuninstall.php
executable file
·44 lines (33 loc) · 1.22 KB
/
uninstall.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
35
36
37
38
39
40
41
42
43
44
<?php
/*
WooCommerce Memcached Full Page Cache - FPC the WooCommerece way via PHP-Memcached.
Copyright (C) 2019 Achim Galeski ( achim@invinciblebrands.com )
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 3, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA02110-1301USA
*/
/**
* Uninstall file for WooCommerce-Memcached-Full-Page-Cache.
*
* @uses defined()
* @uses Data
* @uses unlink()
* @uses delete_site_option()
*/
/*
* Exit if uninstall not called from WordPress
*/
if (! defined( 'WP_UNINSTALL_PLUGIN') || ! defined('ABSPATH')) {
exit;
}
include_once 'vendor/autoload.php';
use InvincibleBrands\WcMfpc\Data;
unlink(Data::advancedCache);
delete_site_option(Data::globalOption);