@ -20,6 +20,6 @@ class EduSetting < ApplicationRecord
private
def expire_value_cache
Rails.cache.clear(value_cache_key)
Rails.cache.write(value_cache_key, value)
end
@ -1,7 +1,8 @@
if @fuzzy_searchs
json.keyword @fuzzy_searchs
json.total_count @fuzzy_searchs.blank? ? nil : @total_count
# if @fuzzy_searchs
# json.keyword @fuzzy_searchs
# json.total_count @fuzzy_searchs.blank? ? nil : @total_count
# end
json.total_count @total_count
json.pagination @total_count > 16 ? true : false
json.search_tags @search_tags
json.shixuns do