"File Cache"

Version 1.0

April 28, 2003

Written by Rick Ellis

-------------------------------------------------------------------------

CHANGE LOG

V 1.0
 - Public release

-------------------------------------------------------------------------

OVERVIEW

 This script enables a web page to be cached.  Normally, pMachine is a
 fully dynamic system, meaning your MySQL database is accessed every
 time a page is requested.  This script allows a page to be written as
 a text file so that the database does not need to be accessed to show it.
 
 NOTE: If you require member registration, adding a cache file is not
 recommended.



-------------------------------------------------------------------------

INSTRUCTIONS FOR USE

	
 In this example, we will cache our main "index.php" file
 
 1. Make a backup copy of index.php and store it for safe-keeping.

 2. Make a second copy of index.php.  Call the new copy "cache_index.php".
	
 3. Create a blank text file called "cache_time.txt".  Set permissions to 666
	
 4. Create a blank text file called "cache_file.php"  Set permissions fo 666
	
 5. Rename THIS script "index.php" so that it is loaded instead of your normal
    index.php file.
    
	
 That's all.
	
 Now, when someone accesses "index.php", this script will run and show
 your web page from cache.  By default it updates every 15 minutes. 
 This can be changed in the config section of the script.
	

-------------------------------------------------------------------------
