Grouper Documentation
Grouper Documentation
twitter youtube linkedin google-plus
Grouper: RSS manager, XML converter, website scraper
Web This Site

Grouper - Documentation

Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes
Etc.: Configure | Affiliates

Function Reference

GrouperCache(search terms, cachefile);

DEPRICATED: Beginning with Grouper 1.6, replace the use of GrouperShow with GrouperCacheData or GrouperCacheSearch, depending on which source or plugin you are using.

Fetches data and stores it, unmodified, in a local cache file. If the cache file already exists, it is refreshed only if it is older than the number of minutes specified in the cacheinterval configuration setting. This function returns 1 if it was necessary to refresh the cache, and 0 if not. After this function completes, $grouperconf['mtime'] will contain the UNIX timestamp for the last time the cache was updated.

searchterms: The terms you would like to search for if using a Search source.
cachefile: The filename of the local cache file.

Example: (cache a copy of an Atom feed--then convert it to RSS, store the RSS data in a file named "example.rss", and output it)

require_once '/YOUR/PATH/TO/grouper/grouper.php';