07-20-2023, 05:21 AM
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?*
-
[To see links please register here]
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?*