SimplePie::set_autodiscovery_cache_duration()publicWP 1.0

Set the length of time (in seconds) that the autodiscovered feed URL will be cached

Метод класса: SimplePie{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$SimplePie = new SimplePie();
$SimplePie->set_autodiscovery_cache_duration( $seconds );
$seconds(int)
The autodiscovered feed URL cache duration.
По умолчанию: 604800

Код SimplePie::set_autodiscovery_cache_duration() WP 6.5.2

public function set_autodiscovery_cache_duration($seconds = 604800)
{
	$this->autodiscovery_cache_duration = (int) $seconds;
}