charles07 Posted November 14, 2012 Share Posted November 14, 2012 hi am trying to use Yii::app()->cache->set('2', 'name'); & access it using echo Yii::app()->cache->get('2'); but it's not printing any result, any idea why ? regards charlkes Link to comment Share on other sites More sharing options...
Edward Posted November 14, 2012 Share Posted November 14, 2012 Make sure phpinfo() shows APC module is enabled. print_r(Yii::app()->cache) and see if it IS CApcCache class. Found that info online you can see if it helps. 1 Link to comment Share on other sites More sharing options...
charles07 Posted November 14, 2012 Author Share Posted November 14, 2012 thanks edward i was using yii dummycache i switched to memcache still i can't use Yii::app()->cache->set('2', 'name'); i need to call $cache - new Memcache; $cache['var'] = 'helloworld'; 1 Link to comment Share on other sites More sharing options...
Recommended Posts