Browse Source

change cache key of date index data

master
filesite 2 days ago
parent
commit
57e6b12bdd
  1. 2
      themes/beauty/controller/ListController.php
  2. 2
      themes/beauty/controller/SiteController.php

2
themes/beauty/controller/ListController.php

@ -303,7 +303,7 @@ Class ListController extends Controller { @@ -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(

2
themes/beauty/controller/SiteController.php

@ -261,7 +261,7 @@ Class SiteController extends Controller { @@ -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(

Loading…
Cancel
Save