php.ini opcache path for multiple websites with shared code base I have a D9 website set up already and I want to add another that shares the same code base.  (This is on a shared hosting environment)
Below is an example my current php.ini settings for the opcache with 'MyWebSite1.com' as the initial website cache directory path.  I want to have the two sites cached in different directories.
How do I specify the path in this php.ini set up for the second 'MyWebSite2.com' website?  Or, does this cache directory contain generic php info that can be shared between multiple sites so that only one directory can be specified?
Thank you.
date.timezone = 'America/City'

zend_extension=opcache.so;
opcache.enable=1;
opcache.memory_consumption=32;
opcache.interned_strings_buffer=8;
opcache.max_accelerated_files=3000;
opcache.revalidate_freq=180;
opcache.fast_shutdown=0;
opcache.enable_cli=0;
opcache.revalidate_path=0;
opcache.validate_timestamps=2;
opcache.max_file_size=0;
opcache.file_cache=/AbsoluteDirectoryPath/sites/MyWebSite1.com/.opcache;
opcache.file_cache_only=1;
If I understand your question correctly, I believe you can use ini_set() in your settings.php files if your multisite required different PHP ini configurations.
Example 1a:
// @file docroot/sites/default/settings.php
ini_set('opcache.file_cache', '/path/to/opcache/default');

Example 1b:
// @file docroot/sites/my-other-site/settings.php
ini_set('opcache.file_cache', '/path/to/opcache/my-other-site');