method
bypass_local_cache
v3.2.8 -
Show latest stable
- Class:
ActiveSupport::Cache::Strategy::LocalCache
bypass_local_cache()private
No documentation available.
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 157
def bypass_local_cache
save_cache = Thread.current[thread_local_key]
begin
Thread.current[thread_local_key] = nil
yield
ensure
Thread.current[thread_local_key] = save_cache
end
end