title: LiipDoctrineCacheBundle how to cache xml?
body: <p>i just wan't to cache xml-content (rss). I have any hour to take this. Caching is configured and still running with other strings. ("Test" or "Hello again")</p>
  
  <p>I'am load the feed with simplexml_load_file. I save the content with json_encode, base64_encode, (array). This will save the content, but if i get fetch the content i became some trouble.</p>
  
  <pre><code>private function getRssFeed($url) {
      try {
  
          $cache_key = $url;
          $cache_driver = $this-&gt;container-&gt;get('liip_doctrine_cache.ns.mynamespace');
  
          if ($cache_driver-&gt;contains($cache_key)) {
              // How i can the content in original-format?
              return $cache_driver-&gt;fetch($cache_key);
          }
  
          $rssFeed = simplexml_load_file($url);
          $cache_driver-&gt;save($cache_key, (array) $rssFeed, strtotime('5 Minutes'));
          //$cache_driver-&gt;save($cache_key, json_encode($rssFeed), strtotime('5 Minutes'));
          //$cache_driver-&gt;save($cache_key, base64_encode($rssFeed), strtotime('5 Minutes'));
          return $rssFeed;
  
      } catch(ContextErrorException $e) {
          $this-&gt;get('logger')-&gt;error('Can not load: '.$url);
          $this-&gt;get('logger')-&gt;error($e-&gt;getCode().' : '.$e-&gt;getMessage());
      }
  }
  </code></pre>
  
  <p>Does any can help in this question?</p>
  
  <p>Regards</p>