public static function invalidate()
{
if (Configs::cache() !== null) {
TagDependency::invalidate(Configs::cache(), self::CACHE_TAG);
}
}
/** * Refresh cache * @return type */ public function actionRefresh() { $model = new Route(); $model->invalidate(); Yii::$app->getResponse()->format = 'json'; return $model->getRoutes(); }