...
|
...
|
@@ -58,7 +58,7 @@ class SearchModel |
|
|
}
|
|
|
// 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存
|
|
|
else {
|
|
|
Cache::set($key, $result, 600); // 缓存10分钟
|
|
|
Cache::set($key, $result, 300); // 缓存5分钟
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -116,7 +116,7 @@ class SearchModel |
|
|
}
|
|
|
// 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存
|
|
|
else {
|
|
|
Cache::set($key, $result, 600); // 缓存10分钟
|
|
|
Cache::set($key, $result, 300); // 缓存5分钟
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|