Skip to content

Commit 49807dc

Browse files
author
Chepurnoy
committed
Upgrade to release v1.1
1 parent 2ed0435 commit 49807dc

9 files changed

+21
-766
lines changed

commands/RbacCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public function actionSyncDeploy()
134134
}
135135
Yii::$app->db->createCommand("SET FOREIGN_KEY_CHECKS=1;")->execute();
136136
Yii::$app->db->createCommand("DELETE aa FROM `AuthAssignment` aa LEFT JOIN AuthItem ai ON(aa.item_name = ai.name) WHERE ai.name IS NULL;")->execute();
137+
Yii::$app->cache->flush();
137138
}
138139

139140
}

components/AccessHelper.php

-15
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ class AccessHelper
1717
* Tag - file, for invalidate tag dependency cache
1818
*/
1919
const FILE_GROUP = 'file';
20-
/**
21-
* Tag - auth, for invalidate tag dependency cache
22-
*/
23-
const AUTH_GROUP = 'auth';
2420

2521
/**
2622
* Get routes
@@ -186,15 +182,4 @@ public static function refreshFileCache()
186182
TagDependency::invalidate($cache, static::getGroup(static::FILE_GROUP));
187183
}
188184
}
189-
190-
/**
191-
* Refresh auth cache
192-
* @static
193-
*/
194-
public static function refreshAuthCache()
195-
{
196-
if (($cache = Yii::$app->getCache()) !== null) {
197-
TagDependency::invalidate($cache, static::getGroup(static::AUTH_GROUP));
198-
}
199-
}
200185
}

0 commit comments

Comments
 (0)