An extension to PEAR's HTTP_Request2 class that implements extensible caching mechanisms.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is a library that extends the PEAR HTTP_Request2 library and implements caching for the GET requests. It is written in a way where other caching mechanisms can be implemented and utilized by simply declaring that class as the request instead of HTTP_Request2 class.

This class uses the exact same interface as a typical HTTP_Request2 request, except that it uses caching for repeat GET requests.


If you wish to implement File Caching into your HTTP GET requests, you could simply use...

  $request = new HTTP_FileCachedRequest('');
  $result = $request->send()->getBody();