0

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:

  1. is it possible to manage php configuration params to disable realpath cache? Does this make sense?
  2. 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.
  3. is it possible to use some tip to reduce the cache reload with this type of architecture?
Alessandra
  • 467
  • 2
  • 6
  • 24
  • Have you looked at https://stackoverflow.com/q/197734/9811969 ? – Nik Mar 29 '19 at 09:05
  • Yes but he says how to check cache behavior but I need to guess when it is invalidated. May be an option make the cache size bigger to contain all the required path? – Alessandra Mar 29 '19 at 12:46

0 Answers0