The [PHP documentation for opcache.opcache_compile_file
says:
This function compiles a PHP script and adds it to the opcode cache without executing it.
If I compile a file using opcache_compile_file()
, and that file includes other files (via include()
, require()
, etc.), will the files that are included be executed? Or will the included files just be compiled and added to the opcache?
EDIT
From a point raised in a comment, are the included files also added to the cache? Or does opcache_compile_file()
simply ignore includes (maybe the optimal behavior)?