设置缓存时间

This commit is contained in:
2022-09-08 09:19:40 +08:00
parent b69d46edd4
commit 977e2f9875
2 changed files with 2 additions and 132 deletions

View File

@@ -97,7 +97,7 @@ class Index extends Common
$content = View::fetch();
Cache::tag('page_cache')->set($page_cache_key, $content);
Cache::tag('page_cache')->set($page_cache_key, $content, 600);
return $content;
}
@@ -111,69 +111,4 @@ class Index extends Common
return $this->success('退出成功', $back_url);
}
/**
* 显示创建资源表单页.
*
* @return \think\Response
*/
public function create()
{
//
}
/**
* 保存新建的资源
*
* @param \think\Request $request
* @return \think\Response
*/
public function save(Request $request)
{
//
}
/**
* 显示指定的资源
*
* @param int $id
* @return \think\Response
*/
public function read($id)
{
//
}
/**
* 显示编辑资源表单页.
*
* @param int $id
* @return \think\Response
*/
public function edit($id)
{
//
}
/**
* 保存更新的资源
*
* @param \think\Request $request
* @param int $id
* @return \think\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* 删除指定资源
*
* @param int $id
* @return \think\Response
*/
public function delete($id)
{
//
}
}