Commit 4e0ea20
mn-ram
[fix] Invalidate controller views cache when org context changes
When organization context variables are updated,
`bulk_invalidate_config_get_cached_checksum` was called to bust the
Config checksum cache, but `invalidate_controller_views_cache` was
never called. This left the DeviceChecksumView cache stale, so devices
kept receiving the old checksum, never transitioned to `modified`
status, and never pulled the updated configuration.
Fix: also call `invalidate_controller_views_cache` whenever the org
`context` field changes, mirroring the existing behaviour that already
fires this task when an organisation is disabled/enabled.
Fixes openwisp#10701 parent 8cf6733 commit 4e0ea20
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
0 commit comments