From ebcf826944ade3d54dbaefaae99ad8a459bc2cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tizian=20R=C3=B6=C3=9Fler?= Date: Fri, 7 Mar 2025 12:00:13 +0100 Subject: [PATCH] [#61633] Redis cache fills up over time https://community.openproject.org/work_packages/61633 Add a hint to documentation that you need to set a policy when using redis to not run out of memory --- docs/installation-and-operations/configuration/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/installation-and-operations/configuration/README.md b/docs/installation-and-operations/configuration/README.md index eaee130bc9e..aa2674ebf6b 100644 --- a/docs/installation-and-operations/configuration/README.md +++ b/docs/installation-and-operations/configuration/README.md @@ -687,6 +687,12 @@ OPENPROJECT_SECURITY__BADGE__DISPLAYED="false" ### Cache configuration options + +> [!NOTE] +> If you are using Redis as cache, you need to set the policy to one of the variants of allkeys. +> If you don't do this, the cached data doesn't expire, and you will run out of memory. +> You can get more information on how to set the Redis policy in the Rails [documentation](https://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-rediscachestore). + * `rails_cache_store`: `memcache` for [memcached](https://www.memcached.org/), `redis` for [Redis cache](https://redis.io/), or `memory_store` (default: `file_store`) * When using `memcached`, the following configuration option is relevant: * `cache_memcache_server`: The memcache server host and IP (default: `nil`)