I have few simple questions now.
I have a custom error logging class that has a ini file (or lez say cnf file) where website admin can change or configue how the error logger works.
For example.
The admin can specify the type of logging (txt, xml or db). He can specify the path where the txt or xml file (or files) are stored. And thren there are about 20 or 30 boolean stuff he can check - if he wants to log this data or not. (there are several things I can find out about client like browser versions, language and so on...)
Now,
First - do you think I should not keep such information in an ini (or cnf) file? Do you think I should keep those values in the class file (php)?
I feel that I should still use the cnf files, but now - here comes the question - should I cache the values in this cnf file or should I read the values always from the file when an error occurs? should I cache using pear_cache the values in this cnf file or should I read the values always from the file when an error occurs
The pear cache seems to use file_container (by default) and maybe I will not get much performance gain when caching the values from the cnf (read txt) file.
The bottom line (question) is: Maybe the fopen, fread, fclose is fast enough? There is no need (point) to cache such values?