Weigh-in with your opinion! Let us know what you think. Goals for SimplePie 2.

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » API Reference » SimplePie » enable_cache()

enable_cache()

Description

class SimplePie {
	enable_cache ( [bool $enable = true] )
}

This option allows you to disable caching all-together in SimplePie. However, disabling the cache can lead to longer load times.

Availability

  • Available since SimplePie 1.0.
  • Previously existed as enable_caching() since SimplePie Preview Release.
  • Previously existed as a constructor parameter since SimplePie 0.94.

Parameters

enable

Set whether caching is enabled or not.

Examples

Disable caching in SimplePie

$feed = new SimplePie();
$feed->set_feed_url('http://simplepie.org/blog/feed/');
$feed->enable_cache(false);
$feed->init();
$feed->handle_content_type();
echo $feed->get_title();

See Also


reference/simplepie/enable_cache.txt · Last modified: 2008/01/03 12:18 by admin