PEAR_REST::retrieveCacheFirst() – Retrieve REST data, but always retrieve the local cache if it is available.


require_once '/REST.php';

string|array PEAR_REST::retrieveCacheFirst ( string $url , array|false $accept = false , boolean $forcestring = false )


This is useful for elements that should never change, such as information on a particular release


string $url

full URL to this resource

array|FALSE $accept

contents of the accept-encoding header

boolean $forcestring

if TRUE, xml will be returned as a string, otherwise, xml will be parsed using PEAR_XMLParser


throws no exceptions thrown


This function can not be called statically.

getCacheId (Previous) Retrieve a remote REST resource (Next)
Last updated: Fri, 27 Nov 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.