Current default OPcache implementation is in-memory, shared. Some of my users expressed concern for performance as shared memory pool can be usurped by other users on the system. To solve such problem I can set pool per user: Code: php_admin_value[opcache.file_cache] = /var/www/user1/opcache But is this approach is correct? Where should I store opcache generated files and does open_basedir directive also must be modified?
I have not tried that, you might want to test it. In any case, I would suggest to use the private or temp dir of the website to store them instead.
Yes. open_basedir always includes subfolders. But I do not think that open_basedir is relevant to that setting.
Can confirm, I successfully enabled file cache per user. This mitigates: * Cache poisoning; * Problems with proper permission isolation in shared environment as SHM model is not fit for that.