Property "CDummyCache.enabled" is not defined.

When I try to enable CDummyCache by this method

‘cache’ => array(‘class’ => ‘system.caching.CDummyCache’),

it shows me error

Property "CDummyCache.enabled" is not defined.

can anyone help me as I am stucked on it from last many hours and done alot of googling but no result.

also I have installed user module but when I try to login it shows me an error

Fatal error: Call to a member function get() on a non-object in D:\xampp\htdocs\testyii\testapp\protected\modules\user\models\YumUser.php on line 365

and the object at specified line is app()->cache

thanks in advance.

hi uzair

please can you provide a dump of your config/main.php file

Note that CDummyCache does not have the property “enabled” at all… check all your code for the reference “enabled” to see where it’s used.