#6250 - Changing any public config options should trigger template cache flush
| Identifier | #6250 |
|---|---|
| Issue type | Minor issue (breaks specific functionality) |
| Title | Changing any public config options should trigger template cache flush |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | PDStig |
| Version | 11 beta7 |
| Addon | core |
| Description | Because public config values are stored in JavaScript configOptionsJson variable through a Tempcode symbol, changing any public configuration options should trigger an automatic template cache flush so this value is updated and is not stale. |
| Steps to reproduce | Changing any public configuration options should trigger an automatic template cache flush, but it may not in all cases, including adding a gtag to Site Options -> Google Analytics Web Property ID. |
| Additional information | I confirm I searched the tracker for an existing issue. I grant permission for the core developers to investigate this issue remotely on my site, in accordance with the server access policies ( https://composr.app/server-access.htm ), via the FTP credentials provided on my member profile (developers: you must exchange an e-mail contact with the user and send a digital copy [not just a link] of the server access policy for them to agree to via e-mail before accessing the server). |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".
Comments
Because public config values are stored in JavaScript configOptionsJson variable through a Tempcode symbol, changing any public configuration options should trigger an automatic template cache flush so this value is updated and is not stale.
This hotfix makes setting any public config option flush specifically the _cms and global template caches (rather than doing a full template cache flush, which is not necessary). These are responsible for holding public config values for JavaScript.