From f6996e21f731816ee458f73dc425ef46eb5c3d7b Mon Sep 17 00:00:00 2001 From: liugang Date: Wed, 13 Nov 2024 11:03:33 +0800 Subject: [PATCH] * [refac] modify default lifetime of cache to no expiration. --- config/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cache.php b/config/cache.php index 9440c18981..2d30595f39 100644 --- a/config/cache.php +++ b/config/cache.php @@ -5,7 +5,7 @@ $config->cache->enable = false; // 是否开启缓存。Enable cache or $config->cache->driver = 'redis'; // 缓存驱动。 The driver of cache. Can be file|yac|apcu|redis. $config->cache->scope = ''; // 缓存服务范围。The scope of cache. Can be private|shared. $config->cache->namespace = ''; // 缓存命名空间。The namespace of cache. -$config->cache->lifetime = 2592000; // 缓存生存时间。The lifetime of cache. The default value is 30 days. +$config->cache->lifetime = 0; // 缓存生存时间,默认永不过期。The lifetime of cache. Default is no expiration. $config->cache->client = new stdClass(); $config->cache->client->enable = false; // 是否开启客户端缓存。Enable client cache or not.