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

GrouperCacheSearch(search terms, cachefile);
Grouper >= 1.6

Fetches search results and stores them, 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. This function is for use with search sources only. For other plugins, use the function GrouperCacheData instead.

searchterms: The terms you would like to search for.
cachefile: The filename of the local cache file or database key if using mySQL caching.



Example:

<?php
require_once '/YOUR/PATH/TO/grouper/grouper.php';
GrouperCacheSearch('internet marketing','example.rss');
?>