APC, or Alternative PHP Cache, is a PHP module that caches the output code of database-driven script apps. Dynamic PHP websites save their content inside a database that is accessed whenever a visitor loads a page. The content that needs to be viewed is gathered and the code is parsed and compiled before it is delivered to the website visitor. These actions take some processing time and involve reading and writing on the web server for every single page that is loaded. While this can't be avoided for Internet sites with regularly changing content, there are numerous Internet sites which present the same content on a lot of of their webpages all of the time - blogs, informational portals, hotel and restaurant websites, etc. APC is very useful for this kind of websites as it caches the already compiled code and displays it each time visitors browse the cached webpages, so the code does not need to be parsed and compiled repeatedly. Not only will this greatly reduce the server load, but it will also raise the speed of any website many times.
APC (PHP Opcode Cache) in Hosting
You will be able to use APC for your web apps with any of the hosting packages that we offer since it's pre-installed on our cloud web hosting platform. Turning it on will take only a mouse click in the Hepsia Control Panel that is provided with our shared plans and a couple of minutes later it will begin caching the program code of your software applications. Our platform is quite flexible, so you will be able to use different configurations depending on the system requirements of the scripts. For instance, you can activate APC for a couple of releases of PHP for the whole account and specify the version that each website will use, or you can have the exact same version of PHP, but enable or disable APC only for specific Internet 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 custom setup.