forked from External/greenlight
Cached request to provider to increase application performance (#755)
This commit is contained in:
committed by
Jesus Federico
parent
3d2a0a060b
commit
177bf4d595
@ -176,6 +176,14 @@ class AdminsController < ApplicationController
|
||||
}
|
||||
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
|
||||
|
Reference in New Issue
Block a user