This is most useful for caching images (get_favicon(), etc.),
however it works for all cached files. This WILL NOT display ANY
file/image/page/whatever, but rather only display what has already
been cached by SimplePie.
public display_cached_file ( str $identifier_url, str $cache_location = './cache', str $cache_extension = 'spc', str $cache_class = 'SimplePie_Cache', str $cache_name_function = 'md5' ) | ||
$identifier_url | str | URL that is used to identify the content. This may or may not be the actual URL of the live content. |
$cache_location | str | Location of SimplePie's cache. Defaults to './cache'. |
$cache_extension | str | The file extension that the file was cached with. Defaults to 'spc'. |
$cache_class | str | Name of the cache-handling class being used in SimplePie. Defaults to 'SimplePie_Cache', and should be left as-is unless you've overloaded the class. |
$cache_name_function | str | Obsolete. Exists for backwards compatibility reasons only. |