[FIX] 修正 cache driver 設定 key 不一致導致 fallback 成 file

1. config/cache.php 的 default 由 env('CACHE_DRIVER','file') 改為 env('CACHE_STORE', env('CACHE_DRIVER','database')),優先採用 Laravel 11+ 的 CACHE_STORE 並相容舊 key
2. 修正主因:舊 key 與 .env 的 CACHE_STORE 對不上 → cache 退回 file driver;file cache 寫入失敗時 ProcessHeartbeat 會在 Cache::put 崩潰,導致機台韌體版本/溫度/心跳寫不進 DB 且 queue worker 連鎖重啟

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
sky121113 2026-06-26 15:14:16 +08:00
parent 5a4d681d13
commit 55cf6b8331

View File

@ -15,7 +15,7 @@ return [
| |
*/ */
'default' => env('CACHE_DRIVER', 'file'), 'default' => env('CACHE_STORE', env('CACHE_DRIVER', 'database')),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------