You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
677 B

<?php
/**
* link: http://www.zjhejiang.com/
* copyright: Copyright (c) 2018 浙江禾匠信息科技有限公司
* author: wxf
*/
namespace app\modules\admin\controllers;
use app\models\common\admin\cache\CommonClearCache;
use Yii;
class CacheController extends Controller
{
public function actionIndex()
{
//TODO 暂时去除
// $this->checkIsAdmin();
if (\Yii::$app->request->isPost) {
$common = new CommonClearCache();
$common->attributes = Yii::$app->request->post();
return $common->clear();
} else {
return $this->render('index');
}
}
}