Commit 88c31d7
Serialize nocache regions before storing in cache
Wrap Region objects in serialize() before putting them in the cache
store so the cache layer only sees a string. This avoids issues with
Laravel 13's serializable_classes allowlist, since Region context can
contain arbitrary objects. We control the unserialize() call ourselves
with allowed_classes => true.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1b3c29d commit 88c31d7
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
0 commit comments