foocache is a simple caching system for PHP4 which optionally uses HTML-tidy to clean up the generated HTML Code.
Instead of processing the whole page a cachefile is loaded if it exists, is younger than a defined age, a given reference file and the calling PHP file it self.
The name of the cache file is generated with the MD5 sum of the Request URI and the HTML post variables. foocache can highlight (search)strings in the output, too.
Example:
<? $foocache[query] = $_GET[search]; require "foocache.inc"; foocache_start(); ?> Here comes HTML, database queries and a lot of PHP stuff which takes some time... All the words given in the GET variable "search" will be highlighted, too. <? foocache_stop(); ?>
Download: foocache.tgz
Changes