0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server
Fabien 'egg' O'Carroll 8b6ec4d922
Emitted all settings events on reinit of cache (#12012)
closes #12003

There are a few parts of Ghost that rely on the settings events being
emitted anytime a setting is changed, so that the data is kept in sync.

When a setting is renamed in a migration essentially what happens is
that the settings value is changed from a default value to its actual
value, but this does no emit an event.

Anything that is initialised before migrations have run that relies on
the events to keep it up to date will have stale data - e.g. the themes
i18n service.

This change ensures that when we `reinit` after migrations have been
run, we emit events for every setting to tell the rest of Ghost that it
has changed.
2020-07-06 17:09:43 +02:00
..
adapters Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
api 🐛 Updated access to be true by default in v3 API 2020-07-06 16:04:29 +01:00
data Hardened members subscription migration against missing data (#12009) 2020-07-06 12:18:13 +02:00
lib Fixed populateImageSizes handling of images in subdir setups 2020-06-23 12:47:20 +01:00
models Updated serializers/model layer validation using settings type 2020-06-30 17:38:36 +05:30
public Renamed members ssr + api endpoints 2020-04-30 19:00:37 +01:00
services Emitted all settings events on reinit of cache (#12012) 2020-07-06 17:09:43 +02:00
translations Updated error messages for member import 2020-07-01 07:23:20 +02:00
views Updated head to only output custom favicons (#11949) 2020-06-30 15:07:08 +01:00
web Added API endpoints for disconnecting Stripe 2020-06-18 18:42:20 +02:00
analytics-events.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
ghost-server.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
index.js 🐛 Fixed settings cache being out of sync after migrations (#11987) 2020-07-01 17:16:57 +01:00
overrides.js
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00