Files
gitlabhq/app/models
Jason Lee 2e4a673cbc Add caching for ApplicationSetting, Ci::ApplicationSetting.
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 (~0.3 - 0.5ms).

```SQL
SELECT  "application_settings".* FROM "application_settings"   ORDER BY "application_settings"."id" DESC LIMIT 1
```
2015-11-12 17:19:03 +08:00
..
2015-11-03 11:54:43 +01:00
2015-09-17 09:51:24 +03:00
2015-05-03 13:38:27 -07:00
2011-10-09 00:36:38 +03:00
2015-09-29 21:47:01 +02:00
2015-08-03 01:52:54 +09:00
2015-11-05 15:24:27 +01:00
2015-05-03 13:38:27 -07:00
2015-04-03 12:28:47 +02:00
2015-08-04 14:33:18 +02:00
2014-08-25 12:25:02 +03:00
2015-05-03 13:38:27 -07:00
2014-10-09 18:22:20 +03:00
2015-05-03 13:38:27 -07:00
2014-10-09 18:22:20 +03:00
2015-11-09 15:30:50 +01:00
2015-08-03 01:52:54 +09:00
2015-06-20 01:06:57 +02:00
2015-03-16 21:38:41 +02:00
2015-05-18 22:51:56 +02:00
2014-08-25 12:25:02 +03:00