OptiCache Pro

:shopping: Product OptiCache Pro
:link: Preview View Product Page
:heart_hands: Forked from Object Cache Pro
:pencil: Original by Rhubarb Group
:1234: Version 1.23.1
:clock1: Last updated 2 May 2025
:date: Published 2 May 2025
:open_book: Support Policy Beginner’s guide to using Festinger Vault

Featured Image

Direct Product Link

Changelog

1.23.1Fix: Prevent fatal error when advanced-cache.php file cannot be written.Fix: Prevent race condition in PHP 8.1+ that could lead to fatal errors.Fix: Prevent “headers already sent” warning when using the health check.Fix: Improve Redis Cluster support.Fix: Correctly detect Redis Sentinel availability when using predis/sentinel.Fix: Compatibility with plugins that define WP_CACHE_KEY_SALT.Fix: Prevent errors when object groups are arrays.Fix: Prevent errors when object keys are objects.Fix: Prevent errors when passing null to strlen().Fix: Improve compatibility with extensions that redefine serialize().Fix: Improve performance when using network alias.Fix: Improve compatibility with weak maps.Fix: Prevent warnings when using PHP 8.2.Fix: Improve health check output.Fix: Improve documentation and inline code comments.

Support Rules

To ensure a smooth support experience, please follow these guidelines:

  • Check the Documentation First – Reviewing the official guides and FAQs can resolve many common issues.
  • Be Clear & Detailed – When asking for support, include details such as error messages, screenshots, and steps to reproduce the issue.
  • Respect Our Scope – We assist with installation, basic troubleshooting, and guidance but do not offer custom development.
  • No Requests for Original Developer Support – If you need direct assistance from the original developer, please consider purchasing an official license.

Final Words

:rocket: Congratulations, you made it to the end of this post! Open-source thrives on collaboration, innovation, and accessibility.

At Festinger Vault, we believe in supporting a growing community by providing access to GPL-licensed resources. Whether you’re a developer, designer, or enthusiast, we encourage responsible experimentation, learning, and sharing. :tada:

If you enjoy using open-source tools, consider supporting the original developers by purchasing a license when needed. Let’s build together and keep innovation open to everyone. :wink:

The plugin doesnt work. Its stuck at

To enable the object cache, set up the WP_REDIS_CONFIG constant.

1 Like

Hi! Did the API config token change?
" An object cache error has occurred:

  • Failed to locate and load object cache API"
1 Like

CacheBoost Pro has been updated to 1.21.3. You can download this version from here.

1 Like

The plugin has been updated now.
Add this code in your wp-config.php before installing the plugin.

define(‘WP_REDIS_CONFIG’, [
‘token’ => ‘e279430effe043b8c17d3f3c751c4c0846bc70c97f0eaaea766b4079001c’,
‘host’ => ‘127.0.0.1’,
‘port’ => 6379,
‘database’ => 0, // change for each site
‘maxttl’ => 3600 * 24 * 7, // 7 days
‘timeout’ => 1.0,
‘read_timeout’ => 1.0,
‘split_alloptions’ => true,
‘debug’ => false,
]);
define(‘WP_REDIS_DISABLED’, false);

Still not working

I am getting this error

Also when you say DB → 0 (change for each site) What does 0 defines? And how to change for different sites? I have around 20 database. How does the script calculates and will understand which to connect with? Numeric DB makes it difficult.

The plugin doesnt start thats the main priority

2 Likes

Yes, same error for me. Really hoping to have this resolved.

Is there any solution for this or should I remove this plugin from my website?

Install on the fresh wp works, but can’t figure out what is the problem with the existing site.

@FestyBot @Steve Any update on the same?

Not the best fix, but managed to get it working with changing the object-cache.php in the /wp-content/

<?php
/*
 * Plugin Name: Object Cache Pro (Drop-in)
 * Plugin URI: https://objectcache.pro
 * Description: A business class Redis object cache backend for WordPress.
 * Version: 1.21.3
 * Author: Rhubarb Group
 * Author URI: https://rhubarb.group
 * License: Proprietary
 * Requires PHP: 7.2
 */

defined('ABSPATH') || exit;

if (version_compare(PHP_VERSION, '7.2', '<')) {
    return require_once ABSPATH . WPINC . '/cache.php';
}

if (defined('WP_REDIS_DISABLED') && WP_REDIS_DISABLED) {
    return;
}

if (! empty(getenv('WP_REDIS_DISABLED'))) {
    return;
}

$customRedisPath = WP_CONTENT_DIR . '/plugins/cacheboost-pro/api.php';
if (is_readable($customRedisPath)) {
    include_once $customRedisPath;
    return;
}

error_log('objectcache.critical: Failed to locate and load object cache');

$GLOBALS['wp_object_cache_errors'] = ['Failed to locate and load object cache API'];

if (defined('WP_DEBUG') && WP_DEBUG) {
    throw new RuntimeException('Failed to locate and load object cache');
}

1 Like

Thanks this is working. But my issue now is the Database number. I have like 50+ websites. How do i set that database number?

CacheBoost Pro has been updated to 1.23.0. You can download this version from here.

Please Update to 1.23.1 !

1 Like

CacheBoost Pro has been updated to 1.23.1. You can download this version from here.

Easy fix … Rename plugin folder to: object-cache-pro