Files
EasyAdmin8/config/cache.php
wolfcode af419ff25b 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.
2024-08-26 18:03:16 +08:00

29 lines
868 B
PHP

<?php
// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------
return [
// 默认缓存驱动
'default' => 'file',
// 缓存连接方式配置
'stores' => [
'file' => [
// 驱动方式
'type' => 'File',
// 缓存保存目录
'path' => '',
// 缓存前缀
'prefix' => 'EA8TP', // 主要是为了区分不同版本安装后数据的残留
// 缓存有效期 0表示永久缓存
'expire' => 0,
// 缓存标签前缀
'tag_prefix' => 'tag:',
// 序列化机制 例如 ['serialize', 'unserialize']
'serialize' => [],
],
// 更多的缓存连接
],
];