Allows caching of permissions in yii\rbac\DbManager
WARNING Yii2 now supports native cache for yii\rbac\DbManager. See yiisoft/yii2#3168
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist bethrezen/yii2-cached-rbac-dbmanager "*"
or add
"bethrezen/yii2-cached-rbac-dbmanager": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply configure your application to use \bethrezen\CachedDbManager
:
'components' => [
// the rest of your components section
'authManager' => [
'class'=>'\bethrezen\CachedDbManager',
],
]