WordPress at a glance
function is not described

SimplePie::set_cache_duration() public WP 1.0

Set the length of time (in seconds) that the contents of a feed will be cached

{} It's a method of the class: SimplePie{}

No Hooks.


null. Nothing.


$SimplePie = new SimplePie();
$SimplePie->set_cache_duration( $seconds );
The feed content cache duration

Code of SimplePie::set_cache_duration() WP 5.7.2

public function set_cache_duration($seconds = 3600)
	$this->cache_duration = (int) $seconds;