Data Caching

Hi,

I’m trying to set a url variable into the cache so it can be used across controller actions

However in trying to


Yii::app()->cache->get('carnival_id')

it returns false

What would cause it to fail/ return false?

To set:


Yii::app()->cache->set('someKey', $data);

To get:


$data = Yii::app()->cache->get('someKey');

Is this what you did?