PHP class to facilitate caching
CacheIt is a PHP class to facilitate caching. You subclass Cachable and implement the get method of Cachable, and you instantiate it as well as instantiate CacheIt with arguments of the instance of your subclass of Cachable. Then both the path (ending in a trailing slash) to the directory that cached data will be kept, and the number of seconds that a cached entry can be kept before expiring. Then, just call the get method of the instance of CacheIt and caching happens automatically. CacheIt doesn't do LRU--if you're concerned about the cache directory getting too large, have a cron job scan it occasionally and delete the oldest files.
released on 11 February 2003
|License||Verified by||Verified on||Notes|
|LGPL||Janet Casey||19 February 2003|
Leaders and contributors
Resources and communication
This entry (in part or in whole) was last reviewed on 19 February 2003.