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(