lib/caches_sql.rb
def find(*args)
		RAILS_DEFAULT_LOGGER.info "args.to_s"
    	if !args.delete(:nocache)
			if args[0].to_s.to_i && args[0].to_s.to_i > 0
	  			Rails.cache.fetch(gen_cache_id(args[0].to_s)) { orig_find(*args) }
			else
				Rails.cache.fetch(gen_cache_id(self.change_index + "/" + args.to_s)) { orig_find(*args) }
			end
		else
		orig_find(*args)
  		end
	end
#   make a backups of orignal find and find_every functions
make a backups of orignal find and find_every functions
make a backups of orignal find and find_every functions
def find(*args)
		RAILS_DEFAULT_LOGGER.info "args.to_s"
    	if !args.delete(:nocache)
			if args[0].to_s.to_i && args[0].to_s.to_i > 0
	  			Rails.cache.fetch(gen_cache_id(args[0].to_s)) { orig_find(*args) }
			else
				Rails.cache.fetch(gen_cache_id(self.change_index + "/" + args.to_s)) { orig_find(*args) }
			end
		else
		orig_find(*args)
  		end
	end
def find ( * args ) RAILS_DEFAULT_LOGGER . info "args.to_s" if ! args . delete ( :nocache ) if args [ 0 ] . to_s . to_i && args [ 0 ] . to_s . to_i > 0 Rails . cache . fetch ( gen_cache_id ( args [ 0 ] . to_s ) ) { orig_find ( * args ) } else Rails . cache . fetch ( gen_cache_id ( self . change_index + "/" + args . to_s ) ) { orig_find ( * args ) } end else orig_find ( * args ) end end
make a backups of orignal find and find_every functions
make a backups of orignal find and find_every functions
args