Commit dcbb051
perf(repo): cache no-match result in PushCommit.AuthorUser
GetWithContextCache only stores on success, so unmatched author emails
re-queried the DB on every PushCommit render across a feed. Drop the
helper and use the ephemeral cache directly so the nil result is cached
for the rest of the request.
Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>1 parent f2363e6 commit dcbb051
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
179 | 185 | | |
180 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
181 | 190 | | |
182 | 191 | | |
183 | 192 | | |
| |||
0 commit comments