From 452e274a3c25ad58bdfd171fd3df1f30afbfa3e6 Mon Sep 17 00:00:00 2001 From: agis Date: Thu, 9 Jul 2026 15:21:40 +0700 Subject: [PATCH] fix(routing): bump route cache key version to v2 Invalidates stale v1 route-cache blobs left by the previous maartenstaa/laravel-41-route-caching package. Those blobs serialized MaartenStaa\Routing\Route objects under the shared 'routes.cache.v1.*' key; after switching to Illuminate\CachedRouting the first post-deploy read of that key unserialized to __PHP_Incomplete_Class, causing 'call a method on an incomplete object' errors. Bumping the version changes the cache key so old blobs are never read again and routes regenerate cleanly on next request. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/Illuminate/CachedRouting/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/CachedRouting/Router.php b/src/Illuminate/CachedRouting/Router.php index 0a455603..4c5566a2 100644 --- a/src/Illuminate/CachedRouting/Router.php +++ b/src/Illuminate/CachedRouting/Router.php @@ -47,7 +47,7 @@ class Router extends LaravelRouter * * @var string */ - protected $cacheVersion = 'v1'; + protected $cacheVersion = 'v2'; /** * Create a new Router instance.