I'm try to use the Codeigniter cache system, to cache some remote xml files into "file cache".
Every think looks great when I request the xmls, but codeigniter not cache the files, instead it return a empty cache, and the cache file contains just the data below:
a:3:{s:4:"time";i:1379515910;s:3:"ttl";i:120;s:4:"data";b:1;}
I'm using the code below to cache the xml:
$this->load->driver('cache');
$this->cache->file->save('first', $data, 120);
[UPDATED]
Now I can save the cache, but I can't rescue the saved data. When I run the command below the cache return false
$this->cache->get('show');
Where am I going wrong?
Thanks.
$this->cache->file->save('first', $data, 120);return? If the save fails it will return false. Have you tried saving something simple to the cache like a string to check if it's working?$this->cache->get('first');to get the data back?