APC, which means Alternative PHP Cache, is a framework used for caching the compiled source code of a script app, that can speed up a database-driven Internet site several times. Every time a PHP page is opened, the script pulls the site content which needs to be loaded from a database, parses and compiles the code, and then the result is displayed to the visitor. While this is necessary for Internet sites with routinely changing content, it's a complete waste of processing time and system resources for a website that does not change, for instance an informational portal that displays the same content at all times. Once the webpages for such a website are compiled, APC caches them and delivers them any time a visitor accesses them. Since this saves the time to request content from the database and to parse and compile the program code, the Internet site will load much quicker. APC is very useful especially for scripts with large source code.
APC (PHP Opcode Cache) in Website Hosting
You can employ APC for your web apps with any of the website hosting plans that we offer since it is pre-installed on our cloud website hosting platform. Turning it on will take just a single click inside the Hepsia Control Panel that is provided with our shared plans and a couple of minutes later it'll begin caching the code of your software applications. Our platform is quite flexible, so you will be able to use several configurations determined by 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 will use, or you can have the very same version of PHP, but activate or deactivate APC just for specified websites. You can do this by putting a php.ini file with a line of program code inside the domain or subdomain folder where you require the custom configuration.