Commit b2e9108
committed
fix(webapp): invalidate entitlement cache on plan changes
When setPlan transitions a customer's plan (free_connected,
updated_subscription, canceled_subscription), invalidate the new
entitlement cache alongside the existing billing cache invalidation.
Without this, a downgrade or cancellation could leave hasAccess: true
served from cache for up to 120s — meaning revoked access would
linger. Per Devin's review on the swr cache PR.1 parent 834a021 commit b2e9108
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| |||
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
| 393 | + | |
392 | 394 | | |
393 | 395 | | |
394 | 396 | | |
395 | 397 | | |
396 | 398 | | |
| 399 | + | |
397 | 400 | | |
398 | 401 | | |
399 | 402 | | |
| |||
0 commit comments