Hi all, I got a system that is called by maaaaaaaaany people, I got to read one config file many times, is there any kind of method to save that file in the cache? I've find something on APC, do u think that could help?
any thought is wellcome
The filesystem already caches that file, so unless you lock it for writing, that is not a problem.
If you are desperate for performance you could try writing the data to shared memory (on unix only) http://www.php.net/manual/en/ref.sem.php
Thanx vincent, I'm reading that article, anyway I've not understood clearly one thing: can I make this shared memory segment once at the beginning and then I can read it any time I want for ever?