| 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 |
|