0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server/config
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
..
env Replace memory spam prevention with brute-express (#7579) 2016-11-08 12:33:19 +01:00
defaults.json Replace memory spam prevention with brute-express (#7579) 2016-11-08 12:33:19 +01:00
index.js 🎨 config optimisations (#7921) 2017-02-02 12:46:30 +00:00
overrides.json 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
utils.js 🎨 config optimisations (#7921) 2017-02-02 12:46:30 +00:00