Added back cache clear function (#867)

This commit is contained in:
Ahmad Farhat 2019-11-28 11:36:49 -05:00 committed by Jesus Federico
parent d35a554199
commit 8a4118a9c1
1 changed files with 8 additions and 0 deletions

View File

@ -158,6 +158,14 @@ class AdminsController < ApplicationController
end
end
# POST /admins/clear_cache
def clear_cache
Rails.cache.delete("#{@user_domain}/getUser")
Rails.cache.delete("#{@user_domain}/getUserGreenlightCredentials")
redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
end
# ROLES
# GET /admins/roles