Click here to Skip to main content
13,054,329 members (120,184 online)
Click here to Skip to main content
Articles » Web Development » PHP » General » Alternatives
Alternatives (5)
Add your own
alternative version

Tagged as


8 bookmarked
Posted 16 Dec 2009

Caching Output in PHP

, 23 Dec 2009


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

22 Jan 2010
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 =...
16 Aug 2010
I wrote the script using a basic class with the intention of simplifying the Cache proccess doing so allows new features to be added without having to deal with complex code.Because we have a identifyer which can be used to check if the "function" is functional or not we can now indicate the...
30 Mar 2010
You should not define the object identifyer at the top of each page (because then you have to write out the same bit of code each time u want to access a object within a class.- (Insted Use a included class)Cachecache_class.phpExample Classclass Cache {function...


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


About the Author

Software Developer
Greece Greece
No Biography provided

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 23 Dec 2009
Article Copyright 2009 by koula7
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid