Commit 449af8f
mn-ram
[fix] Add group-scoped cache invalidation task for device group context change #1070
Replace the org-wide invalidate_controller_views_cache call in
DeviceGroup.save() with a new group-scoped task
invalidate_controller_views_for_group that only clears
DeviceChecksumView entries for devices belonging to that group,
avoiding unnecessary invalidation of unrelated devices and VPN caches.
Also adds assertion in test_status_update_on_group_variable_change to
verify the scoped task is enqueued with the correct group_id.1 parent 966c931 commit 449af8f
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
444 | | - | |
| 443 | + | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
472 | | - | |
| 471 | + | |
| 472 | + | |
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
484 | 487 | | |
485 | 488 | | |
486 | 489 | | |
| |||
0 commit comments