29 lines
618 B
PHP
29 lines
618 B
PHP
<?php
|
|
/****************************************************************
|
|
* Author: libaojia
|
|
* Date: 2017/7/12 上午10:57
|
|
* Email: livsyitian@163.com
|
|
* QQ: 995265288
|
|
* User:
|
|
****************************************************************/
|
|
|
|
namespace app\backend\controllers;
|
|
|
|
|
|
use app\common\components\BaseController;
|
|
|
|
class CacheController extends BaseController
|
|
{
|
|
protected $isPublic = true;
|
|
public function update()
|
|
{
|
|
\Artisan::call('config:cache');
|
|
\Artisan::call('view:clear');
|
|
\Cache::flush();
|
|
|
|
|
|
return $this->message('缓存更新成功');
|
|
}
|
|
|
|
}
|