Re: safemode & caching
B.Kamer <[email protected]> Sat, 19 Mar 2005 22:19:41 +0100
| Newsgroups | gmane.comp.lib.binarycloud.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mar 19, 2005, at 18:14, Jean-Christophe Michel wrote:
> B.Kamer wrote:
>> regarding #162 which prevents stuff from being saved in apache
>> created directories under safemode...
>> I would like to eliminated this problem (small so i can do it),
>> if we agree this is a problem (i say it is)
>> if it isn't being solved as we speak by manuel since this is still
>> work in progress
>> if the proposed solution is acceptable.
>> solution:
>> 1. modify the NDFCache in such a way it does not create subdirs...
>> 2. this should be conditional from conf (like smarty) or
>> ini_get('safe_mode'). (my pref goes to use ini_get)
>
> I'd say: open a ticket to:
> - detect safe-mode
> - if there, disable dir creation in every module via conf settings,
> the code being placed in Project
ticket is there #162
- detect whether safe-mode is enabled in a central place via ini_get()
- set a (use_sub_dirs?) variable in configuration for each module that
may create directories...
- change the modules to honor the conf setting
hmm. now i am thinking & playing on/with this it seems a bit ... not
right...
1. ini_get() is an environment value not a configuration value
2. Conf() reads files before they can be changed in Project, making
this a chicken egg problem.
Why not use ini_get where needed in the logic (Conf / Template)...?
Like Client() uses ini_get('session.use_trans_sid')
Or we could enhance Env so it would become possible to do for bc and
users.
Env->getVar('safe_mode', 'ini');
If ini_gets are slow they could be cached too...
I like the last solution most. mayby a bit more work, but bc style
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev