public function putUpdate(Request $request)
 {
     $data = $request->input('data');
     if ($data && is_array($data)) {
         $this->option->batchUpdate($data);
         //更新系统静态缓存
         SystemOptionCache::cacheStatic();
         return redirect()->route('admin.system_option.index')->with('message', '成功更新系统配置!');
     } else {
         return redirect()->back()->with('fail', '提交过来的数据异常!');
     }
 }
Exemplo n.º 2
0
 /**
  * 重建系统缓存
  * 更新内容或者刚安装完本CMS之后,如果数据显示异常,请执行本方法
  *
  * @return Response
  */
 public function getRebuildCache()
 {
     SystemOptionCache::cacheStatic();
     DataCache::rebuildDataCache();
     SettingCache::uncacheSetting();
     return view('back.cache.index');
 }