lib/caches_sql.rb
def find_every(*args)	
  		if !args.delete(:nocache)
			Rails.cache.fetch(gen_cache_id(self.change_index + "/" + args.to_s)) { orig_find_every(*args) }
		else
			orig_find_every(*args)
		end
	end
# Override find_every method, so find_by_ methods are all cached as well
Override find_every method, so find_by_ methods are all cached as well
Override find_every method so find_by_ methods are all cached as well
def find_every(*args)	
  		if !args.delete(:nocache)
			Rails.cache.fetch(gen_cache_id(self.change_index + "/" + args.to_s)) { orig_find_every(*args) }
		else
			orig_find_every(*args)
		end
	end
def find_every ( * args ) if ! args . delete ( :nocache ) Rails . cache . fetch ( gen_cache_id ( self . change_index + "/" + args . to_s ) ) { orig_find_every ( * args ) } else orig_find_every ( * args ) end end
Override find_every method, so find_by_ methods are all cached as well
Override find_every method so find_by_ methods are all cached as well
args