gCache is a PHP class that can be used to capture and cache Web page content. It can store cached content in files of a given directory. It uses OS independent file locking to prevent corruption from simultaneous attempts to update the cache files. First, it checks whether the cache file exists and has not expired. In that case, it retrieves the cache content into a class variable. If the cache does not exist or has expired, the class can start capturing the output of the current script. When the script is done, the class can store the captured content in the cache file.
| Tags | Software Development Libraries php classes |
|---|---|
| Licenses | Public Domain |
| Implementation | PHP |