-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelete-expired-transients.php
45 lines (36 loc) · 1.55 KB
/
delete-expired-transients.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
45
<?php
/*
Plugin Name: Delete Expired Transients
Plugin URI: https://shop.webaware.com.au/downloads/delete-expired-transients/
Description: delete old, expired transients from WordPress wp_options table
Version: 2.0.7
Author: WebAware
Author URI: https://shop.webaware.com.au/
Text Domain: delete-expired-transients
Domain Path: /languages/
*/
/*
copyright (c) 2013-2018 WebAware Pty Ltd (email : support@webaware.com.au)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, 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, MA 02110-1301 USA
*/
if (!defined('ABSPATH')) {
exit;
}
define('DELXTRANS_PLUGIN_FILE', __FILE__);
define('DELXTRANS_PLUGIN_ROOT', dirname(__FILE__) . '/');
define('DELXTRANS_PLUGIN_NAME', basename(dirname(__FILE__)) . '/' . basename(__FILE__));
define('DELXTRANS_PLUGIN_VERSION', '2.0.7');
// scheduled tasks
define('DELXTRANS_TASK_CLEAR_TRANSIENTS', 'delxtrans_cleartransients');
define('DELXTRANS_TASK_CLEAR_TRANSIENTS_MS', 'delxtrans_cleartransients_ms');
require DELXTRANS_PLUGIN_ROOT . 'includes/class.DelxtransPlugin.php';
DelxtransPlugin::getInstance();