lib/rsqoot/deal.rb
def check_query_change(options = {})
      options = update_by_expire_time options
      @last_deals_query ||= ''
      current_query = options[:query].to_s
      current_query += options[:category_slugs].to_s
      current_query += options[:location].to_s
      current_query += options[:radius].to_s
      current_query += options[:online].to_s
      current_query += options[:expired_in].to_s
      current_query += options[:per_page].to_s
      if @last_deals_query != current_query
        @last_deals_query = current_query
        @total_deals  = []
        @cached_pages = []
      end
    end
def check_query_change(options = {})
      options = update_by_expire_time options
      @last_deals_query ||= ''
      current_query = options[:query].to_s
      current_query += options[:category_slugs].to_s
      current_query += options[:location].to_s
      current_query += options[:radius].to_s
      current_query += options[:online].to_s
      current_query += options[:expired_in].to_s
      current_query += options[:per_page].to_s
      if @last_deals_query != current_query
        @last_deals_query = current_query
        @total_deals  = []
        @cached_pages = []
      end
    end
A status checker for method :total_sqoot_deals
 If the query parameters changed, this will reset the cache
 else it will do nothing