A number of frameworks utilize spl_autoload_register()
for dynamically loading classes (i.e. controllers and models). There are a couple of posts on the issue of autoloading and opcode caching. One post in particular has a response by @cletus which references @Rasmus making a number of statements which prove to be unsavoury for those utilizing APC as an opcode cache:
There does not appear to be any discussion as to any possible alternatives to autoloading which do not affect opcode cache performance.
Is there a way to get around the fact autoloaded classes do not get added to the byte code cache?
If not, are there any alternative methods for dynamically loading classes which will get cached?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…