centurion-project / Centurion

Centurion is an open-source CMS delivered as a flexible PHP5 Content Management Framework
http://www.centurion-project.org
197 stars 51 forks source link

Config cache can not be modified #53

Open aurmil opened 12 years ago

aurmil commented 12 years ago

config cache is created in Centurion_Config_Directory::loadConfig() it should be declared in cache.ini like other ones so I would be possible to disable it (I use to disable caches in dev)

lchenay commented 12 years ago

That's a kind problematic. Centurion_Config_Directory::loadConfig() load all *.ini and cache it.

So it can not use any of .ini file to get configuration because they are not loaded : that the function who load it.

superkozel commented 12 years ago

i don't see a big problem: 1.load config if cache is not available. 2.cache is enabled? cache it/ no - don't cache. Maybe i miss something. I was going to create a similar issue myself... I have one project in one folder running in two environments: development for localhost and production for requests from internet(customer can see progress any time he wants). Config loader cache my production config for development and backwards