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.
Method of the class: SimplePie{}
No Hooks.
Return
null
. Nothing (null).
Usage
$SimplePie = new SimplePie(); $SimplePie->force_cache_fallback( $enable );
- $enable(true|false)
- Force use of cache on fail.
Default: false
SimplePie::force_cache_fallback() SimplePie::force cache fallback code WP 6.5.2
public function force_cache_fallback($enable = false) { $this->force_cache_fallback= (bool) $enable; }