We are currently examining how large we should choose 'Opcache.memory_consumption'. One easy way would be to have a script or function that we could call that ensures that after its execution, all Moodle PHP files got called once (e.g. all moodle files are cached by Opcache).
Is there something like that for moodle? If no, is it difficult to build something like that?
My approach is probably pretty silly. But what about a shell script, that finds all .php-files and executes them once with the command line php (excluding the admin folder)? I know that the php-cli tool uses another php.ini file. I am really not sure if this would be the right approach. Maybe it is not so intelligent to call every possible function of moodle.
I am sorry if this has been asked before, but a search for 'fill Opcache' on this forum just takes forever to load.
Thanks in advance,