module ArCache::ActiveRecord::Core::ClassMethods
Public Instance Methods
find(...)
click to toggle source
The find
and find_by
use ActiveRecord::StatementCache to execute querying first. For ArCache
, we need force skip ActiveRecord::StatementCache.
Calls superclass method
# File lib/ar_cache/active_record/core.rb, line 10 def find(...) ArCache.skip_cache? || ar_cache_table.disabled? ? super : all.find(...) end
find_by(...)
click to toggle source
Calls superclass method
# File lib/ar_cache/active_record/core.rb, line 14 def find_by(...) ArCache.skip_cache? || ar_cache_table.disabled? ? super : all.find_by(...) end