Ghost/core/test/unit/middleware
Katharina Irrgang 0201c431d7 🔥 do not store settings in config (#7924)
* 🎨  🔥  do not store settings in config and make settings cache easier available

- remove remembering settings value in theme config
- if we need a cache value, we are asking the settings cache directly
- instead of settings.getSettingSync we use settings.cache.get

- added TODO:
  - think about moving the settings cache out of api/settings
  - we could create a folder named cache cache/settings
  - this settings cache listens on model changes for settings
  - decoupling

* 🔥  remove timezone from config

- no need to store in overrides config and in defaults settings

* 🎨  context object helper

- replace config.get('theme') by settings cache

* 🎨  replace config.get('theme') by settings.cache.get

* 🎨  adapt tests

* fixes from comments
2017-02-03 13:15:11 +00:00
..
api Replace memory spam prevention with brute-express (#7579) 2016-11-08 12:33:19 +01:00
cache-control_spec.js 🎉 Middleware refactor: Give the API its own express App (#7537) 2016-10-11 10:36:00 +02:00
check-ssl_spec.js 🎉 🎨 Remove middleware/index.js (#7548) 2016-10-13 17:24:09 +02:00
ghost-locals_spec.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
redirect-to-setup_spec.js Ghost OAuth (#7451) 2016-09-30 12:45:59 +01:00
serve-favicon_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
serve-shared-file_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
static-theme_spec.js allow manifest.json in theme root (#6986) 2016-06-29 14:44:01 -06:00
theme-handler_spec.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
uncapitalise_spec.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00