mirror of
https://github.com/201206030/novel-plus.git
synced 2025-04-27 01:30:51 +00:00
点击量计算优化
This commit is contained in:
parent
430504ee28
commit
8fde3a3725
@ -90,7 +90,6 @@ public class BookVisitAddListener {
|
|||||||
Thread.sleep(1000 * 5);
|
Thread.sleep(1000 * 5);
|
||||||
Book book = bookService.queryBookDetail(bookId);
|
Book book = bookService.queryBookDetail(bookId);
|
||||||
searchService.importToEs(book);
|
searchService.importToEs(book);
|
||||||
cacheService.set(CacheKey.ES_IS_UPDATE_VISIT + bookId, "1", 60 * 60);
|
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
cacheService.del(CacheKey.ES_IS_UPDATE_VISIT + bookId);
|
cacheService.del(CacheKey.ES_IS_UPDATE_VISIT + bookId);
|
||||||
log.error("更新搜索引擎失败"+bookId);
|
log.error("更新搜索引擎失败"+bookId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user