Re: best way to cache configs

From: Date: Sat, 02 Apr 2005 18:28:45 +0000
Subject: Re: best way to cache configs
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18488@lists.php.net to get a copy of this message
On Apr 2, 2005, at 10:11 AM, Dan Rossi wrote:
Hi there I am looking at the best way to cache configs exracted from xml using pear Config class. I would also like to pass around the config settings between different classes. Any ideas ? lemme know cheers.
What are you trying to avoid by caching the configs? Are you trying to avoid the parsing? To pass the settings around between classes, I would suggest passing your config_container around (by reference, don't copy it). You could also use it as a global, if you wish. -ryan -- http://theryanking.com/

« previous php.pear.general (#18488) next »