APC, which means Alternative PHP Cache, is a framework used for caching the compiled source code of a given script app, which can boost a database-driven Internet site several times. Every time a PHP web page is opened, the script pulls the site content which should be shown from a database, parses and compiles the program code, and then the result is displayed to the site visitor. While this is necessary for sites with routinely changing content, it is a total waste of processing time and resources for a website that does not change, like an informational portal that shows the same content on a regular basis. Once the webpages for such a site are compiled, APC caches them and delivers them whenever a website visitor loads them. Since this saves the time to collect content from the database and to parse and compile the program code, your website will load a lot faster. APC is very useful especially for scripts with larger source code.
APC (PHP Opcode Cache) in Cloud Website Hosting
You can employ APC for your web apps with all of the cloud website hosting plans that we offer because it is pre-installed on our cloud web hosting platform. Enabling it will take only a mouse click in the Hepsia Control Panel which is provided with our shared solutions and a couple of minutes later it will start caching the program code of your applications. Our platform is quite flexible, so you'll be able to use different configurations based on the system requirements of the scripts. For example, you could activate APC for a couple of releases of PHP for the whole account and choose the version that each site can use, or you can have the same version of PHP, but activate or deactivate APC just for specific sites. This is done by putting a php.ini file with a line of program code in the domain or subdomain folder where you need the customized setup.
APC (PHP Opcode Cache) in Semi-dedicated Hosting
You can take full advantage of APC with all our semi-dedicated hosting solutions and activating this framework is done with a mouse click inside the Hepsia Control Panel, so even if you have no previous experience, you can use it in order to speed up your sites. As the cloud hosting platform where the semi-dedicated accounts are set up supports multiple PHP versions, you will have flexibility regarding the scripts and web accelerators you will be able to use. It will take you only a click to activate APC for one or a couple of PHP versions and by using a php.ini file inside the domain/subdomain folders where you need settings that are different from the ones for the account as a whole, you'll be able to set what PHP version will be used and whether APC has to be allowed or not. This way, one website can use APC and PHP 5.3, for example, and another one may use some different accelerator and PHP 5.5.