proper opcache configuration for CLI

what is the proper opcache configuration when using PHP for CLI only?

I find very confusing/old resources and am not sure this is the proper conf:

[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.file_cache=/tmp/php-opcache

More specifically: the doc describe opcache.file_cache as a second level cache, SHM memory being the 1st level. But I can’t find any recent resource indicating whether the SHM memory is shared across PHP’s cli invocations depending on this, either opcache.file_cache isn’t nescessary or opcache.file_cache_only is required.

Secondly, I’d like to determine the required management over the content of the directory that opcache.file_cache points to

  • it should be created beforehand with the proper rights
  • should it be emptied of old files manually?