Clear memoization after caching new values

This commit is contained in:
Matija Čupić 2018-05-11 18:36:16 +02:00
parent 4c2b56897e
commit 20cfc3fcce
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE

View file

@ -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