FeedCreator::useCached ( filename = "",
timeout = 3600 
)

Turns on caching and checks if there is a recent version of this feed in the cache. If there is, an HTTP redirect header is sent. To effectively use caching, you should create the FeedCreator object and call this method before anything else, especially before you do the time consuming task to build the feed (web fetching, for example).

Since:
1.4
Parameters:
filename string optional the filename where a recent version of the feed is saved. If not specified, the filename is $_SERVER["PHP_SELF"] with the extension changed to .xml (see _generateFilename()).
timeout int optional the timeout in seconds before a cached version is refreshed (defaults to 3600 = 1 hour)

Definition at line 850 of file class_feedcreator.inc.php.

References _generateFilename(), and _redirect().

Here is the call graph for this function:


Generated on Sun Mar 4 17:19:53 2007 for streber by  doxygen 1.5.1-p1