Yii 1.1: ecacheddbauthmanager

Caching brought to CDbAuthManager
9 followers

A cached version of CDbAuthManager.
Removes cache automatically on revoke and assign to avoid old rules governing Auth requests.

Versions

0.2

  • Now working as intended.
  • All users of 0.1 should upgrade to this version.
  • Fixed bug where cache wasn't deleted on assign/revoke
  • Fixed bug where cache always set to to true regardless of Auth result.

Requirements

Yii 1.1
Use of CCache for caching

Usage

config.php

import=>array(
   'ext.ECachedDbAuthManager',
),
...  
'authManager'=>array(
   'class'=>'ext.ECachedDbAuthManager',
   'cacheID'=>'authCache',
),

Params

$cacheId  
$cachingDuration

Be the first person to leave a comment

Please to leave your comment.

Create extension