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
425 stars 148 forks source link

The CPU of redis suddenly increased, causing my site to crash #536

Closed cloud-arrow closed 2 months ago

cloud-arrow commented 2 months ago

Description

  1. Redis monitoring found a large number of flushdb and DUMP wp-object-db:analytics:measurements
截屏2024-06-21 15 03 34 rftdbw9Zwm

Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce

1. 3. 4. 5.

Additional context

Environment

tillkruss commented 2 months ago

You can disable the persisting of cache analytics:

define('WP_REDIS_CONFIG', [
    'analytics' => [
        'enabled' => true,
        'persist' => false, // turn `DUMP` off
    ],
]);