SimplePie::set_cache_duration()
Set the length of time (in seconds) that the contents of a feed will be cached
Метод класса: SimplePie{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$SimplePie = new SimplePie(); $SimplePie->set_cache_duration( $seconds );
- $seconds(int)
- The feed content cache duration
По умолчанию: 3600
Код SimplePie::set_cache_duration() SimplePie::set cache duration WP 6.5.2
public function set_cache_duration($seconds = 3600) { $this->cache_duration = (int) $seconds; }