I have an old php architecture with conditional files requires/includes: that is if the program controller needs a component to manage a service it require/include the corresponding file. I tested it with php7 and it seems slower than with php 5.x version. I read that the problem could be the realpath cache that should be invalidated for each call to my application. I have more question about this problem:
- is it possible to manage php configuration params to disable realpath cache? Does this make sense?
- is it possible to enlarge cache size (4096K by default) to get all the possible require/include? I don't understand when the cache is invalidated.
- is it possible to use some tip to reduce the cache reload with this type of architecture?