rhubarbgroup / redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.
https://wordpress.org/plugins/redis-cache/
GNU General Public License v3.0
439 stars 150 forks source link

What is the equivalent of these? #424

Closed uhlhosting closed 1 year ago

uhlhosting commented 1 year ago

Hey,

Looking for equivalent off these 2 variables:

   // optimize for Relay
    'prefetch' => false,
    'split_alloptions' => true,
in the format for Object Cache Free
    //  Redis Object Cache
define('WP_REDIS_SCHEME', 'unix');
define('WP_REDIS_PATH', '/var/www/redis.sock');
define('WP_REDIS_PREFIX', 'redis-tabak');
define('WP_REDIS_IGBINARY', true);
define('WP_REDIS_DISABLE_BANNERS', true);
// supported clients: `phpredis`, `credis`, `predis` and `hhvm`
define('WP_REDIS_CLIENT', 'relay');
// automatically delete cache keys after 7 days
// define( 'WP_REDIS_MAXTTL', 60 * 60 * 24 * 7 );
// bypass the object cache, useful for debugging
// define( 'WP_REDIS_DISABLED', true );

I got these working just fine, the only downside is I cannot seem to find the equivalent of the prefetch and split_alloptions in the format I use the settings.

uhlhosting commented 1 year ago

sorry, duplicate!