You are here: Documentation » API Reference » SimplePie » enable_cache()
Table of Contents
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: 2011/03/06 03:56 (external edit)