SimplePie::set_autodiscovery_cache_duration()
Set the length of time (in seconds) that the autodiscovered feed URL will be cached
Method of the class: SimplePie{}
No Hooks.
Return
null
. Nothing (null).
Usage
$SimplePie = new SimplePie(); $SimplePie->set_autodiscovery_cache_duration( $seconds );
- $seconds(int)
- The autodiscovered feed URL cache duration.
Default: 604800
SimplePie::set_autodiscovery_cache_duration() SimplePie::set autodiscovery cache duration code WP 6.6.2
public function set_autodiscovery_cache_duration($seconds = 604800) { $this->autodiscovery_cache_duration = (int) $seconds; }