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

GrouperGetCache(cachefile);

Retrieves the specified data from Grouper's cache and stores it in the PHP variable $grouperrawdata. Returns 1 on success or 0 on failure.

cachefile: The filename of the local cache file or database key if using mySQL caching.



Example: (cache a copy of an Atom feed--then retrieve and output it (still in Atom format)

<?php
require_once '/YOUR/PATH/TO/grouper/grouper.php';
GrouperCacheData('http://example.com/feed.atom','example.atom');
if (GrouperGetCache('example.atom')) echo $grouperrawdata;
else echo "ERROR";
?>