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

RedisException: OOM command not allowed when used memory > 'maxmemory' #530

Closed DrLightman closed 2 months ago

DrLightman commented 3 months ago

Hi, just found this in Apache logs:

RedisException: OOM command not allowed when used memory > 'maxmemory'. in /opt/webroot/wp-content/object-cache.php:2212
Stack trace:
#0 /opt/webroot/wp-content/object-cache.php(2212): Redis->set()
#1 /opt/webroot/wp-content/object-cache.php(294): WP_Object_Cache->set()
#2 /opt/webroot/wp-includes/post.php(5747): wp_cache_set()
#3 /opt/webroot/wp-includes/class-wp.php(239): get_page_by_path()
#4 /opt/webroot/wp-includes/class-wp.php(780): WP->parse_request()
#5 /opt/webroot/wp-includes/functions.php(1332): WP->main()
#6 /opt/webroot/wp-blog-header.php(16): wp()
#7 /opt/webroot/index.php(17): require('/opt/webroot/...')
#8 {main}

Steps to Reproduce

Unfortuntaly I have no clue.

Environment

tillkruss commented 2 months ago

Set a maxmemory-policy.