Skip to content

Commit

Permalink
Merge pull request #4621 from aduffeck/default-memory-cache
Browse files Browse the repository at this point in the history
Change the default create personal space cache store to 'memory'
  • Loading branch information
butonic authored Apr 11, 2024
2 parents 74e9da3 + 84e1793 commit 7e6e5e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/change-cache-default-store.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion internal/grpc/services/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (c *config) init() {
}

if c.CreatePersonalSpaceCacheConfig.Store == "" {
c.CreatePersonalSpaceCacheConfig.Store = "noop"
c.CreatePersonalSpaceCacheConfig.Store = "memory"
}

if c.CreatePersonalSpaceCacheConfig.Database == "" {
Expand Down

0 comments on commit 7e6e5e0

Please sign in to comment.