Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » PHP » General » Alternatives
 
Alternatives (3)

Tagged as

Go to top

Caching Output in PHP

, 23 Dec 2009
Introduction...

Alternatives

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

22 Jan 2010
fly904
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
Rockyonfire
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
Rockyonfire
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...

License

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

Share

About the Author

koula7
Software Developer
Greece Greece
No Biography provided

| | Privacy | Mobile
Web04 | 2.8.140922.1 | Last Updated 23 Dec 2009
Article Copyright 2009 by koula7
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid