'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?
Page 1 of 1
CDbCache CDbCache
#3
Posted 24 June 2010 - 07:21 PM
Thank you for your reply!
But I had already tried!
It still could not the normal operation!
I thought that is not this reason!
But I had already tried!
It still could not the normal operation!
I thought that is not this reason!
Share this topic:
Page 1 of 1

Help













