PluginProbe
RabbitLoader / 3.2.0
RabbitLoader v3.2.0
4.0.2 4.0.1 4.0 3.2.0 3.1.1 3.1.0 3.0.5 3.0.3 3.0.4 2.17.1 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.7 2.18.0 2.18.1 2.18.2 2.18.3 2.18.4 2.18.5 2.18.6 2.18.7 2.18.8 All 129 releases
rabbit-loader / advanced-cache.php

advanced-cache.php in RabbitLoader 3.2.0, at advanced-cache.php

39 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * If you have deleted the plugin without using Standard WordPress un-installation methods, such as deleting file system folders etc, you need to clean the advanced-cache.php file's content.
5 */
6 defined('ABSPATH') or die('not allowed');
7
8 if (!defined('RABBITLOADER_AC_PLUG_DIR')) {
9
10 define('RABBITLOADER_AC_ABSPATH', '%%RABBITLOADER_AC_ABSPATH%%');
11
12 //to ensure installed site is not manually copied from other folder
13 if (ABSPATH == RABBITLOADER_AC_ABSPATH) {
14
15 define('RABBITLOADER_AC_ACTIVE', true);
16 define('RABBITLOADER_AC_PLUG_DIR', '%%RABBITLOADER_AC_PLUG_DIR%%');
17 define('RABBITLOADER_AC_LOGGED_IN_COOKIE', '%%RABBITLOADER_AC_LOGGED_IN_COOKIE%%');
18 define('RABBITLOADER_AC_CACHE_DIR', '%%RABBITLOADER_AC_CACHE_DIR%%');
19 define('RABBITLOADER_AC_PLUG_VERSION', '%%RABBITLOADER_AC_PLUG_VERSION%%'); //should not be replaced from the automation script
20 define('RABBITLOADER_AC_PLUG_ENV', '%%RABBITLOADER_AC_PLUG_ENV%%');
21 try {
22 include_once RABBITLOADER_AC_PLUG_DIR . "inc/core/core.php";
23 include_once RABBITLOADER_AC_PLUG_DIR . "inc/core/util.php";
24 include_once RABBITLOADER_AC_PLUG_DIR . "inc/core/integrations.php";
25 include_once RABBITLOADER_AC_PLUG_DIR . "inc/util_wp.php";
26 include_once RABBITLOADER_AC_PLUG_DIR . "inc/public.php";
27
28 try {
29 RabbitLoader_21_Public::process_incoming_request('ac');
30 } catch (\Throwable $e) {
31 RabbitLoader_21_Core::on_exception($e);
32 } catch (Exception $e) {
33 RabbitLoader_21_Core::on_exception($e);
34 }
35 } catch (Exception $e) {
36 }
37 }
38 }
39