Query caching breaks with Laravel 13 cache.serializable_classes #2775
Unanswered
gregory-claeyssens
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After upgrading to Laravel 13, query caching started failing because of the new
cache.serializable_classesconfiguration: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_classesallowlist.Beta Was this translation helpful? Give feedback.
All reactions