Authored by foxxy

性能优化

... ... @@ -119,7 +119,7 @@ public class HelperServiceImpl extends BaseService implements IHelperService, Ap
final String indexName = ISearchConstants.INDEX_NAME_HELPER;
JSONObject cacheObject = searchCacheService.getJSONObjectFromCache(searchCache,indexName, searchParam);
if (cacheObject != null) {
CACHE_MATCH_REQUEST.info("match cache , url is :/helper.json?" + HttpServletRequestUtils.genParamString(paramMap));
CACHE_MATCH_REQUEST.info("match cache , url is :/helper.json? {}" , HttpServletRequestUtils.genParamString(paramMap));
return new SearchApiResult().setData(cacheObject);
}
// 7.查询ES
... ...
... ... @@ -110,7 +110,7 @@ public class ProductListServiceImpl implements IProductListService {
final String indexName = ISearchConstants.INDEX_NAME_PRODUCT_INDEX;
JSONObject cacheObject = searchCacheService.getJSONObjectFromCache(productListSearchCache, indexName, searchParam);
if (cacheObject != null) {
CACHE_MATCH_REQUEST.info("match cache , url is :/productindex/productList.json?" + HttpServletRequestUtils.genParamString(paramMap));
CACHE_MATCH_REQUEST.info("match cache , url is :/productindex/productList.json? {}", HttpServletRequestUtils.genParamString(paramMap));
return new SearchApiResult().setData(cacheObject);
}
... ...