Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple page caching for PHP
branch: master

Use register_shutdown_function

latest commit 9d62a4cc7b
Tom Robinson authored
Failed to load latest commit information. Move README
cacheme.php Use register_shutdown_function


cachme is a very simple caching system for PHP pages, based on the technique described at but packaged in a reusable script.


To use cachme, simple include it at the very top of the script you wish to cache:

<?php include('cacheme.php'); ?>

Also make sure the cache directory ("cache" in DOCUMENT_ROOT by default) exists and is writable by the webserver.

You can change the expiration time per file by setting $cacheme_expires (number of seconds) before including "cacheme.php".


Custom headers such as content types aren't cached, etc.

Something went wrong with that request. Please try again.