Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
mu-plugins
/
object-cache-pro
/
stubs
:
mu-plugin.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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'); }