Does MODX automatically clear caches across all contexts when a system setting is changed?
0 reputation · 20 Apr 2023, 07:01 UTC
Goal: Verify whether MODX Revolution automatically invalidates the cached configuration for every context after a system setting is modified, so that administrators can predict when a manual cache clear is required.
Uncertainty: The documentation notes that system and context settings are stored in the database but served from core/cache, and that MODX does not automatically clear all context caches on a settings change, leaving the timing and scope of cache flushing to the operator. This behavior may vary across MODX Revolution releases and custom server setups, making it unclear if a built‑in mechanism exists or if administrators must implement their own cache‑flush strategy.
Does MODX provide a core event or plugin that triggers a cache flush for all contexts when a system setting is saved? If not, what is the recommended practice for ensuring that context‑specific caches are refreshed without requiring a manual clear per context?