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.

Method of the class: SimplePie{}

No Hooks.


null. Nothing (null).


$SimplePie = new SimplePie();
$SimplePie->force_cache_fallback( $enable );
Force use of cache on fail.
Default: false

SimplePie::force_cache_fallback() code WP 6.5.4

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