forked from External/greenlight
Added back cache clear function (#867)
This commit is contained in:
parent
d35a554199
commit
8a4118a9c1
|
@ -158,6 +158,14 @@ class AdminsController < ApplicationController
|
||||||
end
|
end
|
||||||
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
|
# ROLES
|
||||||
|
|
||||||
# GET /admins/roles
|
# GET /admins/roles
|
||||||
|
|
Loading…
Reference in New Issue