1<?php
2/*
3 * Plugin Name: Object Cache Pro (MU)
4 * Plugin URI: https://objectcache.pro
5 * Description: A business class Redis object cache backend for WordPress.
6 * Version: 1.25.3
7 * Author: Rhubarb Group
8 * Author URI: https://rhubarb.group
9 * License: Proprietary
10 * Requires PHP: 7.2
11 */
12
13defined('ABSPATH') || exit;
14
15define('RedisCachePro\Basename', basename(__FILE__));
16
17foreach ([
18 defined('WP_REDIS_DIR') ? rtrim(WP_REDIS_DIR, '/') : null,
19 __DIR__ . '/redis-cache-pro',
20 __DIR__ . '/object-cache-pro',
21] as $path) {
22 if (is_null($path)) {
23 continue;
24 }
25
26 foreach (['redis-cache-pro.php', 'object-cache-pro.php'] as $file) {
27 if (is_readable("{$path}/{$file}") && include_once "{$path}/{$file}") {
28 return;
29 }
30 }
31}
32
33error_log('objectcache.critical: Failed to locate and load Object Cache Pro plugin');
34
35if (defined('WP_DEBUG') && WP_DEBUG) {
36 throw new RuntimeException('Failed to locate and load Object Cache Pro plugin');
37}
38