提交 f036eacd 编写于 作者: E Eileen M. Uchitelle

Merge pull request #22193 from grosser/grosser/multi

call local_cache 1 time instead of 3 times
......@@ -102,10 +102,10 @@ def decrement(name, amount = 1, options = nil) # :nodoc:
protected
def read_entry(key, options) # :nodoc:
if local_cache
local_cache.fetch(key) do
if cache = local_cache
cache.fetch(key) do
entry = super
local_cache.write_entry(key, entry, options)
cache.write_entry(key, entry, options)
entry
end
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册