Re: Conf: argue !

"Wim Niemans ri" <[email protected]>
Newsgroups gmane.comp.lib.binarycloud.devel
Organization Pb Solo
Message-ID <421F1063.11039.6E7566@localhost>
On 25 Feb 2005 at 9:45, Jean-Christophe Michel wrote:

> Wim Niemans ri wrote:
> Currently Conf included php files (xml is transformed into php by 
> phing+xsl). I'm afraid reading many conf values from db will be slow. 
> That's why I propose a cache as php files.

I see the point to cache the values into a php-file.
It's smarter than serialize. Maybe faster too.
It does change the design of Conf a bit: you should cache all class 
variables as well (paths already loaded).

> >>Whereas including a php file caching all confs is easy and probably fast.
> > 
> > Conf: caches. Solved.
> 
> Ah, so you agree?

Yo. Totally. Though I have a general problem with the terms used:
Conf: reads the values form a source and caches that in memory.
Second there is a need to dump that data on a persistent storage.
That's called caching ?? No problem. Conf: does a cache.

wim niemans
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.