PERF: introduce full cache for site json when anon

This commit is contained in:
Sam
2015-09-28 16:44:03 +10:00
parent 181ab89485
commit 1061a9ed06
3 changed files with 43 additions and 1 deletions

View File

@ -373,6 +373,7 @@ module SiteSettingExtension
def clear_cache!
SiteText.text_for_cache.clear
Rails.cache.delete(SiteSettingExtension.client_settings_cache_key)
Site.clear_anon_cache!
end
def diff_hash(new_hash, old)