Couldn't enable cache - getting read only error

Trying to enable cache in the application configuration.

    'cache'=>array(


	'class'=>'system.caching.CFileCache',


),

But getting this error.

CException

Property "CWebApplication.cache" is read only.

C:\jai\Confidential\Facebook App\websource\sharedd\yii\framework\base\CModule.php(467)

455 }

456 }

457

458 /**

459 * Configures the module with the specified configuration.

460 * @param array $config the configuration array

461 */

462 public function configure($config)

463 {

464 if(is_array($config))

465 {

466 foreach($config as $key=>$value)

467 $this->$key=$value;

468 }

469 }

Any Ideas?

Cache configuration must be an element of ‘components’ array.




'components'  => array(

	'cache'  => array(

		'class'  => 'system.caching.CFileCache',

	),

)



cool. Thanks

tnx, very helpful