APC, which means Alternative PHP Cache, is a framework used for caching the compiled source code of a given script application, which can boost a database-driven Internet site several times. When a PHP page is opened, the script pulls the site content which should be displayed from a database, parses and compiles the code, and the result is shown to the visitor. While this is necessary for Internet sites with constantly changing content, it is a complete waste of processing time and system resources for an Internet site which doesn't change, like an informational portal that shows the very same content at all times. When the webpages for such a website are compiled, APC caches them and delivers them whenever a user accesses them. Since this saves the time to collect content from the database and to parse and compile the code, the Internet site will load much faster. APC is really effective in particular for scripts with large source code.
APC (PHP Opcode Cache) in Cloud Hosting
You will be able to employ APC for your web apps with any of the cloud hosting packages that we offer as it's pre-installed on our cloud web hosting platform. Enabling it will take just a click inside the Hepsia Control Panel which is provided with our shared plans and a few minutes later it will start caching the program code of your software applications. Our platform is quite flexible, so you'll be able to use several configurations depending on the system requirements of the scripts. For example, you can activate APC for a couple of releases of PHP for the entire account and choose the version that each Internet site can use, or you can have the same version of PHP, but activate or deactivate APC just for particular sites. You can do this by putting a php.ini file with a line of code in the domain or subdomain folder where you need the custom setup.