app/controllers/application_controller.rb
# just clear all fragment caches quickly
just clear all fragment caches quickly
just clear all fragment caches quickly
def clear_all_caches
    Rails.cache.clear
    remove_cached_feeds
    if ActionController::Base.cache_store.class == ActiveSupport::Cache::MemCacheStore
      ActionController::Base.cache_store.clear
      return true
    else
      return false
    end
  end
def clear_all_caches Rails . cache . clear remove_cached_feeds if ActionController :: Base . cache_store . class == ActiveSupport :: Cache :: MemCacheStore ActionController :: Base . cache_store . clear return true else return false end end
just clear all fragment caches quickly
just clear all fragment caches quickly
# The docs warn about doing this, TODO - should we remove it?