Skip to content

Add caching for ApplicationSetting, Ci::ApplicationSetting.

Witrem requested to merge github/fork/huacnlee/cache-application-setting into master

Created by: huacnlee

ApplicationSetting.current was called in every pages, cache it and expires it after it updated.

This changes will avoid a SQL query in every pages

SELECT  "application_settings".* FROM "application_settings"   ORDER BY "application_settings"."id" DESC LIMIT 1

Merge request reports

Loading