From 57e6b12bdde52327e4fef6ce9e3b68d2a0646e4a Mon Sep 17 00:00:00 2001 From: filesite Date: Sun, 24 Nov 2024 20:44:55 +0800 Subject: [PATCH] change cache key of date index data --- themes/beauty/controller/ListController.php | 2 +- themes/beauty/controller/SiteController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/beauty/controller/ListController.php b/themes/beauty/controller/ListController.php index 4e44a51..2413069 100644 --- a/themes/beauty/controller/ListController.php +++ b/themes/beauty/controller/ListController.php @@ -303,7 +303,7 @@ Class ListController extends Controller { $isAdminIp = Common::isAdminIp($this->getUserIp()); //判断是否拥有管理权限 //从缓存文件获取按年份、月份归类的索引数据 - $cacheDataByDate = Common::getCacheFromFile($this->dateIndexCacheKey, 86400*365, 'index'); + $cacheDataByDate = Common::getCacheFromFile($this->dateIndexCacheKey . '_keys', 86400*365, 'index'); $viewName = '//site/index'; //共享视图 $params = compact( diff --git a/themes/beauty/controller/SiteController.php b/themes/beauty/controller/SiteController.php index d6ea0ae..18bb08c 100644 --- a/themes/beauty/controller/SiteController.php +++ b/themes/beauty/controller/SiteController.php @@ -261,7 +261,7 @@ Class SiteController extends Controller { //从缓存文件获取按年份、月份归类的索引数据 - $cacheDataByDate = Common::getCacheFromFile($this->dateIndexCacheKey, 86400*365, 'index'); + $cacheDataByDate = Common::getCacheFromFile($this->dateIndexCacheKey . '_keys', 86400*365, 'index'); $viewName = 'index'; $params = compact(