|
@@ -68,7 +68,7 @@ class AdService extends BaseService
|
|
|
public function geListBySort($sortId, $num=6){
|
|
public function geListBySort($sortId, $num=6){
|
|
|
$showNum = ConfigService::make()->getConfigByCode("index_ad_{$sortId}_num");
|
|
$showNum = ConfigService::make()->getConfigByCode("index_ad_{$sortId}_num");
|
|
|
$num = $showNum? $showNum : $num;
|
|
$num = $showNum? $showNum : $num;
|
|
|
- $cacheKey = "caches:adverts:list_sort_{$sortId}_{$num}";
|
|
|
|
|
|
|
+ $cacheKey = "caches:index:adverts:list_sort_{$sortId}_{$num}";
|
|
|
$dataList = RedisService::get($cacheKey);
|
|
$dataList = RedisService::get($cacheKey);
|
|
|
if($dataList){
|
|
if($dataList){
|
|
|
return $dataList;
|
|
return $dataList;
|
|
@@ -102,7 +102,7 @@ class AdService extends BaseService
|
|
|
* @return array|mixed
|
|
* @return array|mixed
|
|
|
*/
|
|
*/
|
|
|
public function geDataBySort($sortId){
|
|
public function geDataBySort($sortId){
|
|
|
- $cacheKey = "caches:adverts:data_sort_{$sortId}";
|
|
|
|
|
|
|
+ $cacheKey = "caches:index:adverts:data_sort_{$sortId}";
|
|
|
$data = RedisService::get($cacheKey);
|
|
$data = RedisService::get($cacheKey);
|
|
|
if($data){
|
|
if($data){
|
|
|
return $data;
|
|
return $data;
|