run:R W Run
DIR
2026-04-09 18:51:36
R W Run
DIR
2026-04-09 18:51:36
R W Run
DIR
2026-04-09 18:51:36
R W Run
42.31 KB
2026-04-09 18:51:36
R W Run
14.57 KB
2026-04-09 18:51:36
R W Run
1.09 KB
2026-04-09 18:51:36
R W Run
19.59 KB
2026-04-09 18:51:36
R W Run
3.33 KB
2026-04-09 18:51:36
R W Run
2.5 KB
2026-04-09 18:51:36
R W Run
2.42 KB
2026-04-09 18:51:36
R W Run
324 By
2026-04-09 18:51:36
R W Run
2.55 KB
2026-04-09 18:51:36
R W Run
error_log
📄object-cache-pro.php
1<?php
2/*
3 * Plugin Name: Object Cache Pro
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 * Update URI: false
11 * Network: true
12 * Requires PHP: 7.2
13 */
14
15defined('ABSPATH') || exit;
16
17/**
18 * Abort plugin boot on unsupported PHP versions.
19 */
20if (version_compare(PHP_VERSION, '7.2', '<')) {
21 return;
22}
23
24/**
25 * Avoid loading plugin more than once.
26 */
27if (defined('RedisCachePro\Version')) {
28 return error_log('objectcache.warning: Object Cache Pro is being loaded more than once');
29}
30
31/**
32 * The plugin version number.
33 */
34define('RedisCachePro\Version', '1.25.3');
35
36/**
37 * The absolute path to the plugin file.
38 */
39define('RedisCachePro\Filename', __FILE__);
40
41/**
42 * Bootstrap the plugin and instantiate it.
43 */
44require_once ABSPATH . 'wp-admin/includes/file.php';
45require_once ABSPATH . 'wp-admin/includes/plugin.php';
46
47require_once __DIR__ . '/bootstrap.php';
48
49add_action('plugins_loaded', function () {
50 if (! defined('RedisCachePro\Basename')) {
51 define('RedisCachePro\Basename', plugin_basename(__FILE__));
52 }
53
54 $GLOBALS['ObjectCachePro'] = \RedisCachePro\Plugin::boot();
55
56 if (defined('WP_CLI') && WP_CLI) {
57 WP_CLI::get_root_command()->remove_subcommand('redis');
58 WP_CLI::add_command('redis', \RedisCachePro\Console\Commands::class);
59 }
60});
61
62add_action('activated_plugin', function ($plugin) {
63 global $wp_filesystem;
64
65 if ($plugin !== plugin_basename(__FILE__)) {
66 return;
67 }
68
69 if (defined('WP_CLI') && WP_CLI) {
70 WP_CLI::log(WP_CLI::colorize('Be sure to set up the `%gWP_REDIS_CONFIG%n` constant before running `%gwp redis enable%n`.'));
71 } else {
72 set_transient('objectcache_activated', wp_create_nonce('objectcache-activated'), 30);
73 }
74
75 deactivate_plugins('redis-cache/redis-cache.php', true, is_multisite());
76
77 if (WP_Filesystem()) {
78 $dropin = WP_CONTENT_DIR . '/object-cache.php';
79
80 if ($wp_filesystem->exists($dropin)) {
81 $data = get_plugin_data($dropin, false, false);
82
83 if (strpos($data['PluginURI'], 'wordpress.org/plugins/redis-cache')) {
84 $wp_filesystem->delete($dropin);
85
86 if (function_exists('wp_opcache_invalidate')) {
87 wp_opcache_invalidate($dropin, true);
88 }
89 }
90 }
91 }
92});
93