Commit cbd6ea9
committed
VPN: IPsec: Security Policy Database - extend ModelRelationField so it can optionally disable caching. closes #9365
In some cases caching can be problematic, for example when rows are dynamically generated or when the cache is persisted while the model hasn't reached it final state yet.
The latter seems to be the case here. When referring connection, we actually mean the description of the related field, which may not be persisted in the model yet as an earlier field triggered the data to be stored (locals.local.connection for example).
This commit adds "DisableCache" as ModelRelationField option and uses it in SPDs.SPD.connection_child1 parent 3ba41cc commit cbd6ea9
File tree
2 files changed
+18
-1
lines changed- src/opnsense/mvc/app/models/OPNsense
- Base/FieldTypes
- IPsec
2 files changed
+18
-1
lines changedLines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
168 | 184 | | |
169 | 185 | | |
170 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| 421 | + | |
421 | 422 | | |
422 | 423 | | |
423 | 424 | | |
| |||
0 commit comments