mirror of
https://github.com/201206030/novel-plus.git
synced 2025-06-24 04:46:37 +00:00
修改首页缓存时间
This commit is contained in:
@ -40,7 +40,7 @@ public class FriendLinkServiceImpl implements FriendLinkService {
|
||||
.build()
|
||||
.render(RenderingStrategies.MYBATIS3);
|
||||
result = friendLinkMapper.selectMany(selectStatement);
|
||||
cacheService.setObject(CacheKey.INDEX_LINK_KEY,result);
|
||||
cacheService.setObject(CacheKey.INDEX_LINK_KEY,result,60 * 60 * 24);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class NewsServiceImpl implements NewsService {
|
||||
.build()
|
||||
.render(RenderingStrategies.MYBATIS3);
|
||||
result = newsMapper.selectMany(selectStatement);
|
||||
cacheService.setObject(CacheKey.INDEX_NEWS_KEY,result);
|
||||
cacheService.setObject(CacheKey.INDEX_NEWS_KEY,result,60 * 60 * 12);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user