title: Codeigniter object cache doesnt work
body: <p>I'm trying to save into the cache a json web response, my controller it's pretty simple, here's:</p>
  
  <pre><code>&lt;?php
  defined('BASEPATH') OR exit('No direct script access allowed');
  
  include_once APPPATH . 'models/presenters/Radio.php';
  use Streame\Model\Presenter\Radio as Radio;
  use Streame\Model\Presenter\Genre as Genre;
  
  class Test extends MY_Controller {
  
  
      public function index(){
          $this-&gt;load-&gt;driver('cache');
          if (! $cache_data = $this-&gt;cache-&gt;get('zzz')) {
              $req = $this-&gt;send_req('radios', 'GET', array("size" =&gt; 5, "phrase" =&gt; "rock"));
              $json = $req-&gt;json();
              $top_50_radios = Radio::deserializeJsonArray($json["docs"]);
              $cache_data = (object) $top_50_radios;
              $this-&gt;cache-&gt;save('zzz', $cache_data, 60 * 60 * 12);
  
              echo "\n&lt;/br&gt;NOT CACHEEEEED"; var_dump($cache_data);
          } else {
              echo "\n&lt;/br&gt;CACHEEEEED";  var_dump($cache_data);
          }
          shuffle($cache_data);
          $data["random_radio"] = $cache_data[0]-&gt;permalink;
  
      }
  
  }
  </code></pre>
  
  <p>I got this working when I changed the <code>cache_path</code> in <code>config.php</code>, from nothing to this:  </p>
  
  <p><code>$config['cache_path'] = APPPATH.'../../cache/';</code></p>
  
  <p>But now, from nowhere, It started to ignore the cache again, the only thing that I get is "NOT CACHED".</p>
  
  <p>I'm running the framework in a nginx server, maybe has something to do with the permissions of the files?</p>