Clear memoization after caching new values
This commit is contained in:
parent
4c2b56897e
commit
20cfc3fcce
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ module RedisCacheable
|
|||
Gitlab::Redis::SharedState.with do |redis|
|
||||
redis.set(cache_attribute_key, values.to_json, ex: CACHED_ATTRIBUTES_EXPIRY_TIME)
|
||||
end
|
||||
|
||||
clear_memoization(:cached_attributes)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue