‘db’=>array(
‘connectionString’ => ‘mysql:host=localhost;dbname=test’,
‘emulatePrepare’ => true,
‘username’ => ‘root’,
‘autoConnect’=>false,
‘password’ => ‘123’,
‘charset’ => ‘utf8’,
),
‘cache’=>array(
‘class’=>‘system.caching.CDbCache’,
‘connectionID’=>‘db’,
//‘autoCreateCacheTable’=>false,
//‘cacheTableName’=>‘yiicache’,
),
CDbCache had already produced table(‘yiicache’) in my database!
But When my Web application run :
Yii::app()->cache->set("persons",$persons,60);
It will make a mistake:
CDbConnection is inactive and cannot perform any DB operations.
I don’t know Why?
Since he had already produced the table, represents CDbCache is normal!
Is really my database question?