diff --git a/themes/beauty/controller/SiteController.php b/themes/beauty/controller/SiteController.php index d5d9fda..c1ee8b0 100644 --- a/themes/beauty/controller/SiteController.php +++ b/themes/beauty/controller/SiteController.php @@ -181,7 +181,8 @@ Class SiteController extends Controller { }else { //优先从缓存获取 $cacheKey = $this->getCacheKey($cateId, 'dirsnap'); - $cachedData = Common::getCacheFromFile($cacheKey); + $expireSeconds = FSC::$app['config']['screenshot_expire_seconds']; //有效期3650天 + $cachedData = Common::getCacheFromFile($cacheKey, $expireSeconds); if (empty($cachedData)) { //从缓存数据中获取目录的realpath