Click here to Skip to main content
15,891,943 members
Articles / Programming Languages / PHP

Caching Output in PHP

Rate me:
Please Sign up or sign in to vote.
4.75/5 (4 votes)
22 Jan 2010CPOL 6.2K   3  
You can wrap the functions into a class and use the default class life cycle to your advantage.<?phpclass Cache{ const DIRECTORY = '../cache/'; const TIME = 600; protected $cache_directory; private $using_cached_file = false; public function __construct( $cache_directory =...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions