From af419ff25ba5bbad31ceda87a611c24a89bf2cde Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Mon, 26 Aug 2024 18:03:16 +0800 Subject: [PATCH] feat(cache): set default cache prefix to 'EA8TP' To prevent cache data residuals between different versions, the default cache prefix has been changed from an empty string to 'EA8TP'. This ensures each version's cache is distinctly separated. BREAKING CHANGE: The cache prefix 'EA8TP' is now used by default. If your application depends on the default cache prefix being empty, you will need to explicitly set the prefix to an empty string. --- config/cache.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/cache.php b/config/cache.php index 6b72dc8..c1d8d48 100644 --- a/config/cache.php +++ b/config/cache.php @@ -3,7 +3,6 @@ // +---------------------------------------------------------------------- // | 缓存设置 // +---------------------------------------------------------------------- - return [ // 默认缓存驱动 'default' => 'file', @@ -16,7 +15,7 @@ return [ // 缓存保存目录 'path' => '', // 缓存前缀 - 'prefix' => '', + 'prefix' => 'EA8TP', // 主要是为了区分不同版本安装后数据的残留 // 缓存有效期 0表示永久缓存 'expire' => 0, // 缓存标签前缀