mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-25 10:56:34 +08:00
added 加载缓存
This commit is contained in:
parent
0d67858183
commit
327be8d3a3
@ -12,7 +12,12 @@ use app\admin\model\Filter;
|
|||||||
|
|
||||||
class FilterManager extends Base {
|
class FilterManager extends Base {
|
||||||
public function index(){
|
public function index(){
|
||||||
$data = Filter::all();
|
$cacheValue = [];
|
||||||
|
$data = (new Filter())->where([])->select();
|
||||||
|
foreach ( $data as $value ){
|
||||||
|
$cacheValue[$value['id']] = $value['name'];
|
||||||
|
}
|
||||||
|
cache(CacheType::FILTER_LIST_KEY, $cacheValue);
|
||||||
$table = [
|
$table = [
|
||||||
'tempType' => 'table',
|
'tempType' => 'table',
|
||||||
'header' => [
|
'header' => [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user