|
|
@ -181,7 +181,8 @@ Class SiteController extends Controller { |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
//优先从缓存获取 |
|
|
|
//优先从缓存获取 |
|
|
|
$cacheKey = $this->getCacheKey($cateId, 'dirsnap'); |
|
|
|
$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)) { |
|
|
|
if (empty($cachedData)) { |
|
|
|
//从缓存数据中获取目录的realpath |
|
|
|
//从缓存数据中获取目录的realpath |
|
|
|