Speeding up your site with Zend_Cache

Zend Framework 71 Comments »
  1. 30, ‘automatic_serialization’ => true);
  2. $backendOptions = array(‘cache_dir’ => ‘/tmp/’  );
  3. $cache = Zend_Cache::factory(‘Core’, ‘File’, $frontendOptions, $backendOptions);
  4.  
  5. if(!$feed = $cache->load(‘feed’)) {
  6.     $feed = new Zend_Feed_Rss(‘http://feeds.feedburner.com/phpCoderBlog’);
  7.     $cache->save($feed, ‘feed’);
  8. }
  9. ?>
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in