Commit 20cfc3fc authored by Matija Čupić's avatar Matija Čupić

Clear memoization after caching new values

parent 4c2b5689
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment