Is it possible to have opcache or any PHP accelerator on free hosting? My website is a Symfony project and it is highly recommended to use a PHP accelerator.
It’s not possible to install these modules on free hosting.
Opcache is great if you have a powerful server with plenty of memory. That way, the PHP interpreter can load your code into memory and load it from there when the next request comes in.
However, on free hosting, we need to load a large number of accounts on a single server to keep costs low, which means the available memory for individual accounts is very low. This, combined with the fact that websites on free hosting are low traffic (they have to be, given the modest resource allocation), your cache hit ratio would be very low. So the benefit of an opcode cache on free hosting would be very slim compared to such a cache on VPS.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.