public function index() { if(Cache::get('category')) { $tree = Cache::get('category'); } else{ $tree = $this->getCate(); Cache::set('category',$tree,3600*24); } $this->assign('tree',$tree); return view(); }
TP5数据写入缓存
猜你喜欢
转载自my.oschina.net/u/3483680/blog/1824049
今日推荐
周排行