Open kierenevans opened 3 years ago
it's recommended to only preload files you are using, so e.g not the whole vendor directory, so should be something the project can configure a list to allow preloading.
@kierenevans If this is still needed - what's the challenge here? Compiling the preload script with includes so it works without autoloader? I'm asking cause atm I'm building a tool that does something very similar.
PHP 7.4 and above can use opcache.preload
Older versions can use cachetool's
opcache:compile-scripts
commandThis helps avoid longer requests when opcache is empty, though visitors may be unlucky to hit files that are not yet compiled.