SimplePie::force_cache_fallback()publicWP 1.0

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. Ничего (null).


$SimplePie = new SimplePie();
$SimplePie->force_cache_fallback( $enable );
Force use of cache on fail.
По умолчанию: false

Код SimplePie::force_cache_fallback() WP 6.5.2

public function force_cache_fallback($enable = false)
	$this->force_cache_fallback= (bool) $enable;