Commit 1f31677
committed
fix(files-actions-menu): evict cache after the DB write, not before
Evicting before the write opens a window where a concurrent reader misses
the cache, refetches the still-pre-write DB, and repopulates with stale data
that sticks until the next register/unregister. Also avoids churning the
cache when the write itself throws.
Signed-off-by: Jaap van der Plas <jvdplas@gmail.com>1 parent 747e363 commit 1f31677
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
0 commit comments