|
@@ -353,13 +353,13 @@ class CmsContentTemplateSetRepository
|
|
|
$product_keys = sprintf($product_key, md5($res_id));
|
|
|
}
|
|
|
|
|
|
- Log::info(Redis::exists($product_keys));
|
|
|
- if (Redis::exists($product_keys)) {
|
|
|
- $result = Redis::get($product_keys);
|
|
|
- $res = json_decode($result, true);
|
|
|
- Log::info($res);
|
|
|
- return $res;
|
|
|
- }
|
|
|
+// Log::info(Redis::exists($product_keys));
|
|
|
+// if (Redis::exists($product_keys)) {
|
|
|
+// $result = Redis::get($product_keys);
|
|
|
+// $res = json_decode($result, true);
|
|
|
+// Log::info($res);
|
|
|
+// return $res;
|
|
|
+// }
|
|
|
|
|
|
try {
|
|
|
if (isset($request['field_order'])) {
|
|
@@ -376,13 +376,11 @@ class CmsContentTemplateSetRepository
|
|
|
|
|
|
$url = config("customer.app_service_url") . '/product/exchange/subject';
|
|
|
$http = http($url, $array, 'get');
|
|
|
-// if (!Cache::has($product_keys)) {
|
|
|
-// Cache::store('redis')->put($product_keys, $http, 600);//10分钟过期
|
|
|
+
|
|
|
+// if (!Redis::exists($product_keys)) {
|
|
|
+// Redis::setex($product_keys, 300, json_encode($http));//5分钟过期
|
|
|
+// Log::debug('专题商品缓存存储成功-' . json_encode($http));
|
|
|
// }
|
|
|
- if (!Redis::exists($product_keys)) {
|
|
|
- Redis::setex($product_keys, 300, json_encode($http));//5分钟过期
|
|
|
- Log::debug('专题商品缓存存储成功-' . json_encode($http));
|
|
|
- }
|
|
|
return $http;
|
|
|
|
|
|
} catch (\Exception $e) {
|