Skip to content

Modular logistics and supply chain operating system (LSOS)

Fix: Critical cache key collision bug in ApiModelCache

Ronald A. Richardson2d4cc5cf6663
diff --git a/RELEASE.md b/RELEASE.md
index 5edf9b6c..7ce732c9 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -1,35 +1,17 @@
-# πŸš€ Fleetbase v0.7.23 β€” 2025-12-19
+# πŸš€ Fleetbase v0.7.24 β€” 2025-12-21
-> "🀯 Insane optimization and performance upgrades + horizontal scaling support πŸš€"
+> "Critical core-api patches for cache key generation"
---
## ✨ Highlights
-- Major performance and optimization improvements which support horizontal scaling
-- Ability to resize images on upload using resize parameters
-- Several patches in FleetOps - fixed service rates and missing translations, improvements and patch to scheduler
-- Added a new `LanguageService` available in ember-core
-- Minor `@fleetbase/ember-ui` improvements
-
-### New Features
-- **Improved API performance** with two-layer caching system (Redis + ETag validation) for user and organization data
-- **Reduced bandwidth usage** with automatic HTTP 304 Not Modified responses via new ValidateETag middleware
-- **Faster page loads** with intelligent cache invalidation that updates immediately when data changes
-- **New UserCacheService class** for centralized cache management across the application
-- **Image resizing support** for dynamic image dimensions via URL parameters
-- Added `ApiModelCache` class - Provides intelligent Redis-based caching for API query results with automatic invalidation
-- Added `HasApiModelCache` trait - Enables models to cache query results with a single method call
-
-### Performance Improvements
-- Optimized form data syncing to eliminate N+1 query problems, reducing database queries from N to 2 for relationship syncing
-- Implemented cache stampede prevention to handle high concurrent load efficiently
-- Added cache versioning system for automatic invalidation when data changes
-
-### Developer Experience
-- Added `X-Cache-Status` header to API responses for easy cache debugging (HIT/MISS visibility)
-- Automatic multi-tenant cache key generation for company-scoped data isolation
-- Graceful fallback to direct queries when cache is unavailable
+### Bug Fixes
+- **Fixed cache key collision bug** - Different filter parameters (e.g., `type=customer` vs `type=contact`) now generate unique cache keys instead of returning wrong cached results
+- **Fixed BadMethodCallException** - Models without soft deletes (like Permission) no longer crash when calling `getDeletedAtColumn()`
+
+### Improvements
+- **Added caching to Permission model** - Permission queries now benefit from Redis caching for improved performance
---
diff --git a/api/composer.json b/api/composer.json
index f0a36879..4257775f 100644
--- a/api/composer.json
+++ b/api/composer.json
@@ -20,7 +20,7 @@
"require": {
"php": ">=8.0 <=8.2.28",
"appstract/laravel-opcache": "^4.0",
- "fleetbase/core-api": "^1.6.29",
+ "fleetbase/core-api": "^1.6.30",
"fleetbase/fleetops-api": "^0.6.31",
"fleetbase/registry-bridge": "^0.1.2",
"fleetbase/storefront-api": "^0.4.10",
diff --git a/api/composer.lock b/api/composer.lock
index ad4ddc27..c81241c6 100644
--- a/api/composer.lock
+++ b/api/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "00b483afab0efc1ac2d37d621137dd7c",
+ "content-hash": "0a4d5402ef0197586152d90d3bd5a5df",
"packages": [
{
"name": "appstract/laravel-opcache",
@@ -2157,16 +2157,16 @@
},
{
"name": "fleetbase/core-api",
- "version": "1.6.29",
+ "version": "1.6.30",
"source": {
"type": "git",
"url": "https://github.com/fleetbase/core-api.git",
- "reference": "b637c41e988c10be922313fbfff3c41b1270be76"
+ "reference": "9020d1219f15eacab54ef2439681dae23cba1941"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fleetbase/core-api/zipball/b637c41e988c10be922313fbfff3c41b1270be76",
- "reference": "b637c41e988c10be922313fbfff3c41b1270be76",
+ "url": "https://api.github.com/repos/fleetbase/core-api/zipball/9020d1219f15eacab54ef2439681dae23cba1941",
+ "reference": "9020d1219f15eacab54ef2439681dae23cba1941",
"shasum": ""
},
"require": {
@@ -2253,9 +2253,9 @@
],
"support": {
"issues": "https://github.com/fleetbase/core-api/issues",
- "source": "https://github.com/fleetbase/core-api/tree/v1.6.29"
+ "source": "https://github.com/fleetbase/core-api/tree/v1.6.30"
},
- "time": "2025-12-19T13:24:53+00:00"
+ "time": "2025-12-21T03:58:35+00:00"
},
{
"name": "fleetbase/countries",
diff --git a/console/package.json b/console/package.json
index de273e21..e66d3e25 100644
--- a/console/package.json
+++ b/console/package.json
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/console",
- "version": "0.7.23",
+ "version": "0.7.24",
"private": true,
"description": "Modular logistics and supply chain operating system (LSOS)",
"repository": "https://github.com/fleetbase/fleetbase",
diff --git a/docker/Dockerfile b/docker/Dockerfile
index c9626709..a78be260 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -75,7 +75,7 @@ ENV QUEUE_CONNECTION=redis
ENV CADDYFILE_PATH=/fleetbase/Caddyfile
ENV CONSOLE_PATH=/fleetbase/console
ENV OCTANE_SERVER=frankenphp
-ENV FLEETBASE_VERSION=0.7.23
+ENV FLEETBASE_VERSION=0.7.24
# Set environment
ARG ENVIRONMENT=production
diff --git a/packages/core-api b/packages/core-api
index b637c41e..9020d121 160000
--- a/packages/core-api
+++ b/packages/core-api
@@ -1 +1 @@
-Subproject commit b637c41e988c10be922313fbfff3c41b1270be76
+Subproject commit 9020d1219f15eacab54ef2439681dae23cba1941