PHP Fast File Cache

Fast cache for dynamic content!
 

DOWNLOAD

Release Version
[ 2004-05-27 ] PHP FastFileCache 0.1b [ Download ]

FEATURES
  • Easy to use - just include two files in your current dynamic page (at top and bottom).
  • Caches output data in plain files in a directory of choice
  • Timeout setting in seconds-until-old
  • Per-file cache timeout override
  • Faster than PEAR Cache-Lite
  • Implements file-locking to prevent data corruption and unnecessary processing
  • Can cache dynamic pages that take parameters to display different data (like article_id=#)
  • It's FREE of charge ;-)
REQUIREMENTS
PHP
  • PHP 4
  • File-locking must be enabled (The flock() function is used)
  • Tested with PHP 4.2.2
  • Short-tags must be enabled in php.ini!
Web Server
  • The web server must have write permission in a directory on the system. Because of flock()-use in PHP - this directory cannot reside on an NFS mount.
INSTALLATION
  1. Create a cache directory and make it writeable by the web server.

    E.g:
    mkdir /tmp/wwwcache
    chown nobody /tmp/wwwcache
    chmod 700 /tmp/wwwcache
    (In this example, the webserver is run as user nobody.)
  2. Edit cache_begin.php
    1. Set $cache_cacheDirectory if not following the example above (Rembember: with trailing slash '/').
    2. Set $cache_refreshTime variable to your liking.
  3. See cachetest-simple.php and cachetest-advanced.php for examples of how to use the scripts.
FAQ

Q: Why are there no FAQ's?
A: Maybe it just works? ;-)

MODIFICATIONS

If you want to modify PHP FastFileCache to better suit your needs, just do it :-)
I'd really like to hear from you if you think something is missing/wrong.

DONATE
PHP FastFileCache is available FREE of charge, but donations are always welcome.
Please click on the button below to support further development.

Please donate!
CONTACT
Contact me at software@ake.nu