GodFather GodFather - 3 months ago 22x
PHP Question

codeigniter cache returns always empty

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:


I'm using the code below to cache the xml:

$this->cache->file->save('first', $data, 120);


Now I can save the cache, but I can't rescue the saved data. When I run the command below the cache return false


Where am I going wrong?



Problem solved, when I call the method to get the current cache I need to pass the used driver e.g.: