SimplePie::enable_cache()
Enable/disable caching in SimplePie.
This option allows you to disable caching all-together in SimplePie. However, disabling the cache can lead to longer load times.
Method of the class: SimplePie{}
No Hooks.
Return
null
. Nothing (null).
Usage
$SimplePie = new SimplePie(); $SimplePie->enable_cache( $enable );
- $enable(true|false)
- Enable caching
Default: true
Changelog
Since 1.0 | Introduced. |
Since 1.0 | Preview Release |
SimplePie::enable_cache() SimplePie::enable cache code WP 6.5.2
public function enable_cache($enable = true) { $this->cache = (bool) $enable; }