Skip to content

Navigation Menu

Sign in
Sign up

Query caching breaks with Laravel 13 cache.serializable_classes #2775

Unanswered
gregory-claeyssens asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /