I
I
Ilya Beloborodov2016-03-02 16:03:27
Yii
Ilya Beloborodov, 2016-03-02 16:03:27

How to fix error after enabling CDbCache component in Yii1?

The site works, everything is as it should be without problems.
I put it in the component

'cache'=>array( 
         'class'=>'system.caching.CDbCache'
),

refresh the page:
CDbConnection failed to open the DB connection: could not find driver

Usually such an error is due to an incorrect connection to the database. But with the connection everything is fine, this error disappears after I rob the code above from the config.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question