-
-
Notifications
You must be signed in to change notification settings - Fork 468
Query caching breaks with Laravel 13 cache.serializable_classes #2775
Unanswered
gregory-claeyssens
asked this question in
Q&A
After upgrading to Laravel 13, query caching started failing because of the new cache.serializable_classes configuration:
https://laravel.com/docs/13.x/upgrade#cache-serializable_classes-configuration
When the restriction is enabled, cached queries can no longer be unserialized successfully. As a workaround, I had to disable the restriction entirely in config/cache.php:
'serializable_classes' => true,Would it make sense to document this in the Lighthouse upgrade notes or query caching documentation? It would also be helpful to know which Lighthouse-related classes should be added to the serializable_classes allowlist.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment