I’ve set schemaCachingDuration in my config, but the profile is still showing lots of calls to ‘SHOW COLUMNS FROM’ etc. Any ideas?
config:
...
'db' => array(
'connectionString' => 'hidden',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'hidden',
'charset' => 'utf8',
'tablePrefix' => '',
'enableProfiling' => true,
'schemaCachingDuration' => 100,
),
...
Example profile results…
system.db.CDbCommand.query(SHOW COLUMNS FROM `algo_extra`) 1 0.00366 0.00366 0.00366 0.00366
system.db.CDbCommand.query(SHOW COLUMNS FROM `site_access`) 1 0.00354 0.00354 0.00354 0.00354
system.db.CDbCommand.query(SHOW COLUMNS FROM `user`)
......