SimplePie::force_cache_fallback()
SimplePie to continue to fall back to expired cache, if enabled, when feed is unavailable.
This tells SimplePie to ignore any file errors and fall back to cache instead. This only works if caching is enabled and cached content still exists.
Метод класса: SimplePie{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$SimplePie = new SimplePie(); $SimplePie->force_cache_fallback( $enable );
- $enable(true|false)
- Force use of cache on fail.
По умолчанию: false
Код SimplePie::force_cache_fallback() SimplePie::force cache fallback WP 6.1.1
public function force_cache_fallback($enable = false) { $this->force_cache_fallback= (bool) $enable; }