File cache class

File cache class is a PHP Class that can cache arbitrary data in files in order to reduce the time necessary to regenerate pages or other types of data that do not change every time they are requested. It features safe locking of cache files to avoid data corruption caused by simultaneous accesses during cache file updates, portable locking schemes, and the ability to set a cache expiry date or timeout period. Cache files can store user-defined headers besides the cached data, and also standard headers used in HTTP like content-length:, date:, expires:, etag:, etc. It has been tested under Linux, SunOS and Windows.

Tags Internet Web Dynamic Content Software Development Libraries php classes
Licenses BSD Original
Operating Systems OS Independent
Implementation PHP

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  30 Apr 2009 10:04
  • Rrelease-after

    Changes: This release fixes a bug that was preventing the class from checking cache file integrity.

    • Rrelease-mid
    •  04 Feb 2008 04:41
    • Rrelease-after

    Changes: This release fixes a bug that was preventing the reading of cache file headers longer than the default file buffering length limit.

    • Rrelease-mid
    •  29 Apr 2004 00:10
    • Rrelease-after

    Changes: An issue with not reinitializing the headers of an outdated cache file that was making file cache refreshing fail when setting headers that were already defined in the outdated cache file were fixed. Explicit non-blocking file locking methods are now used in the updating method.

    Changes: This release implements a function, "updating", that determines if the cache is currently locked for update by a concurrent process, or if the cache is available for reading or updating. A simple example of usage of the class is also provided.

    Changes: This release can cache headers which contain special values to be used to generate the cache. These values are verified to determine if the cache is up-to-date. Several bugs have been fixed.

    No-screenshot

    Project Spotlight

    Free Islamic Toolbar

    Islamic toolbar for watching Islamic TV channels, listen Islamic radio, Islamic Search engine and more..

    5ce91300369404ce3a4befb9acb03d4d_thumb

    Project Spotlight

    CLIChart

    Command line tools to summarize and chart data from system logs.