APC, or Alternative PHP Cache, is a PHP module that caches the output code of database-driven script applications. Dynamic PHP sites store their content inside a database that is accessed whenever a visitor opens a webpage. The content that should be displayed is retrieved and the code is parsed and compiled before it's delivered to the website visitor. All of these actions take some processing time and involve reading and writing on the web server for each and every page that is accessed. While this cannot be avoided for Internet sites with constantly changing content, there're various Internet sites which present the same content on many of their pages all the time - blogs, informational portals, hotel and restaurant websites, and many others. APC is quite useful for this kind of websites since it caches the already compiled code and displays it when visitors browse the cached webpages, so the code doesn't have to be parsed and compiled again. This will not only minimize the server load, but it will also increase the speed of any Internet site several times.
APC (PHP Opcode Cache) in Shared Hosting
You'll be able to employ APC for your web applications with any of the shared hosting plans that we offer because it's pre-installed on our cloud web hosting platform. Turning it on will take just a single click inside the Hepsia Control Panel which is provided with our shared plans and a couple of minutes later it'll begin caching the program code of your applications. Our platform is really flexible, so you'll be able to use several configurations based on the system requirements of the scripts. For instance, you'll be able to activate APC for several versions of PHP for the whole account and set the version that each site can use, or you could have the same version of PHP, but activate or deactivate APC only for specified websites. You can do this by putting a php.ini file with a line of program code in the domain or subdomain folder where you require the custom setup.