From 0a120ab76d62dadd93f4f03de2c81e84f6a58753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Mon, 8 Apr 2024 12:10:04 +0200 Subject: [PATCH 1/2] Change the default create personal space cache store to 'memory' --- internal/grpc/services/gateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/grpc/services/gateway/gateway.go b/internal/grpc/services/gateway/gateway.go index 55a5ea8a7a..d16bf42cb2 100644 --- a/internal/grpc/services/gateway/gateway.go +++ b/internal/grpc/services/gateway/gateway.go @@ -131,7 +131,7 @@ func (c *config) init() { } if c.CreatePersonalSpaceCacheConfig.Store == "" { - c.CreatePersonalSpaceCacheConfig.Store = "noop" + c.CreatePersonalSpaceCacheConfig.Store = "memory" } if c.CreatePersonalSpaceCacheConfig.Database == "" { From 84e17931f07b36b40f38ce0862d59ade886dc722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Mon, 8 Apr 2024 12:36:27 +0200 Subject: [PATCH 2/2] Add changelog --- changelog/unreleased/change-cache-default-store.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 changelog/unreleased/change-cache-default-store.md diff --git a/changelog/unreleased/change-cache-default-store.md b/changelog/unreleased/change-cache-default-store.md new file mode 100644 index 0000000000..82746c2dc6 --- /dev/null +++ b/changelog/unreleased/change-cache-default-store.md @@ -0,0 +1,5 @@ +Enhancement: Use a memory cache for the personal space creation cache + +Memory is a safe default and ensures that superfluous calls to CreateStorageSpace are prevented. + +https://github.com/cs3org/reva/pull/4621