|
|
@ -107,4 +107,18 @@ Class SiteController extends Controller { |
|
|
|
return $this->render($viewName, $params, $pageTitle); |
|
|
|
return $this->render($viewName, $params, $pageTitle); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//清空缓存 |
|
|
|
|
|
|
|
public function actionCleancache() { |
|
|
|
|
|
|
|
$prefix = FSC::$app['config']['theme']; |
|
|
|
|
|
|
|
$cacheKey = "{$prefix}_allFilesTree"; |
|
|
|
|
|
|
|
Common::cleanFileCache($cacheKey); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$cacheKey = "{$prefix}_allFilesData"; |
|
|
|
|
|
|
|
Common::cleanFileCache($cacheKey); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$code = 1; |
|
|
|
|
|
|
|
$msg = 'OK'; |
|
|
|
|
|
|
|
return $this->renderJson(compact('code', 'msg')); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|