SimplePie::force_cache_fallback

Advertisement

Summery Summery

SimplePie to continue to fall back to expired cache, if enabled, when feed is unavailable.

Syntax Syntax

SimplePie::force_cache_fallback( bool $enable = false )

Description Description

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.

Parameters Parameters

$enable

(bool) (Optional) Force use of cache on fail.

Default value: false

Source Source

File: wp-includes/class-simplepie.php

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.