I am using Yii 1.1.12 and upgraded PHP from 5.3 to 5.5. The PHP5.5 does not have APC support and its mentioned all across on the internet that PHP5.5 provide native cache support in shape of OPCACHE so APC cache is not supported. If this is the case, then what changes do I need to make in the Yii main.config in order to tell Yii that there is some cache available so that my following code is executable.
Yii::app()->cache->set('some data to be cached', $CACHE_VARIABLES);
$get_var=Yii::app()->cache->get($CACHE_VARIABLES);
I am totally stuck and pretty worried if I have to make changes in my code !!
Thanks for your reply. Actually, I had tried that as well, the problem with Dummy is that it does not actually store anything, it’s there just to provide an interface in case one moves from Non-Cache to Cache mode.
That’s said, I am more inclined towards using CZendDataCache but unfortunately, despite searching for hours, I am not able to find this extension. Can you provide some directions?
In your expert opinion, please suggest if at all I should move to Apache2.4 and PHP5.5? Currently I have, Apache 2.2.22 and PHP5.3 with APC. if this move is not going to give me substantial gains then I would probably wouldn’t bother much!!!
I made the change as your suggested but Yii is throwing error. If “CZendDataCache” is in core then it shouldn’t give error, attached is the screen shot of error that I am receiving.
Actually what the error says is that PHP needs the zend extension (a .so on *nix, or .dll on windows) must be loaded. That is: it must be present and configured in the php.ini.
A call to ‘phpinfo()’ can help you identify the available extensions. Just create a .php file with ‘<?php phpinfo();’ and check the result.