Alternative PHP Cache, or APC, is a module for Apache servers that is used to cache the output code of script apps. It is very effective for scripts with large source code and will accelerate such a site as much as three times. PHP websites are dynamic and each time a user accesses a page, the script hooks up to a database in order to get some content, and then the code is parsed and compiled before it's displayed to the site visitor. If the output code doesn't change however, that's the case with sites that show the same content all the time, these actions result in unnecessary reading and writing. What APC does is that it caches the previously compiled code and delivers it whenever visitors browse a site, so the database doesn't need to be accessed and the code does not need to be parsed and compiled over and over again, which in turn decreases the site loading time. The module can be quite effective for informational sites, blogs, portfolios, etc.
APC (PHP Opcode Cache) in Cloud Hosting
You will be able to use APC for your web apps with all of the cloud hosting plans that we provide since it's pre-installed on our cloud web hosting platform. Enabling it will take just a click in the Hepsia Control Panel that comes with our shared plans and several minutes later it will start caching the program code of your applications. Our platform is very flexible, so you'll be able to use different configurations in accordance with the system requirements of your scripts. For example, you'll be able to activate APC for several releases of PHP for the entire account and choose the version that each site will use, or you could have the very same version of PHP, but enable or disable APC just for specified websites. You can do this by placing a php.ini file with a line of code within the domain or subdomain folder where you require the customized configuration.