app/controllers/application_controller.rb
# clear the cached activity logs on homepage
clear the cached activity logs on homepage
clear the cached activity logs on homepage
def clear_cached_homepage_activity_logs
    if Rails.cache
      Language.find_active.each do |language|
        expire_fragment(action: 'index', controller: "content",
          action_suffix: "activity_#{language}_data_#{EolConfig.data?}")
      end
    end
  end
def clear_cached_homepage_activity_logs if Rails . cache Language . find_active . each do | language | expire_fragment ( action : 'index' , controller : "content" , action_suffix : "activity_#{language}_data_#{EolConfig.data?}" ) end end end
clear the cached activity logs on homepage
clear the cached activity logs on homepage