File Based Opcache problem
Hi there
I am trying to enable file based opcache so the scripts stay cached when the domains don't have traffic and can be re-loaded compiled from the SSD drives, instead of needing to be recompiled every time, by using opcache.file_cache="/tmp/php_opcache" in the php.ini files.
All the other opcache settings I use make it into the phpinfo(), but this one doesn't and no files show up in the cache. Neither in the global, nor the CageFS directory.
Using CL, CageFS, LiteSpeed, lsapi. Not that it should matter, right? Even if there is a file path error the setting should show up in phpinfo().
Any ideas?
Thanks
Mark
-
Hi Michael I did a bit more research and there seems to be an open feature request because cPanel can't handle file cache: Enable file-based OpCache for PHP 7.0/7.1 Before I open the ticket and you try to fix it - can you confirm first if it actually should work by now? Thanks Mark 0 -
Hello Mark, Thanks for sharing the feature request link. The information in that request is accurate, specifically /opt/cpanel/ea-php72/root/usr/bin/php -i|grep disable-opcache-file
I recommend continuing to follow the feature request for updates on this topic (I see you've added a comment already). Thank you.0
Please sign in to leave a comment.
Comments
3 comments