File "object-cache.php"
Full Path: /home/amervokv/ecomlive.net/wp-content/mu-plugins/object-cache.php
File size: 1.12 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Plugin Name: Object Cache Pro (MU)
* Plugin URI: https://objectcache.pro
* Description: A business class Redis object cache backend for WordPress.
* Version: 1.18.2
* Author: Rhubarb Group
* Author URI: https://rhubarb.group
* License: Proprietary
* Requires PHP: 7.2
*/
if (defined('MWP_OBJECT_CACHE_DISABLED') && MWP_OBJECT_CACHE_DISABLED) {
return;
}
if ( getenv('MWP_OBJECT_CACHE_EXPERIMENT') !== 'true' ) {
return;
}
defined('ABSPATH') || exit;
define('RedisCachePro\Basename', basename(__FILE__));
foreach ([
defined('WP_REDIS_DIR') ? rtrim(WP_REDIS_DIR, '/') : null,
__DIR__ . '/redis-cache-pro',
__DIR__ . '/object-cache-pro',
] as $path) {
if (is_null($path)) {
continue;
}
foreach (['redis-cache-pro.php', 'object-cache-pro.php'] as $file) {
if (is_readable("{$path}/{$file}") && include_once "{$path}/{$file}") {
return;
}
}
}
error_log('objectcache.critical: Failed to locate and load Object Cache Pro plugin');
if (defined('WP_DEBUG') && WP_DEBUG) {
throw new RuntimeException('Failed to locate and load Object Cache Pro plugin');
}