Browse Source

change cache time of dir snapshot

master
filesite 4 months ago
parent
commit
ed32a8e87e
  1. 3
      themes/beauty/controller/SiteController.php

3
themes/beauty/controller/SiteController.php

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

Loading…
Cancel
Save