APC (PHP Opcode Cache)
Discover what the phrase ‘APC’ represents, exactly what APC can do PHP efficiency-wise and approaches to enable it for your account.
APC, which means Alternative PHP Cache, is a framework used for caching the compiled source code of a script app, which could speed up a database-driven site several times. Every time a PHP page is accessed, the script pulls the website content that has to be loaded from a database, parses and compiles the program code, and the result is shown to the visitor. While this is necessary for Internet sites with frequently changing content, it is a complete waste of processing time and resources for an Internet site which does not change, for instance an informational portal which shows the very same content on a regular basis. When the webpages for such an Internet site are compiled, APC caches them and delivers them whenever a visitor opens them. Since this saves the time to request content from the database and to parse and compile the code, the Internet site will load much quicker. APC is very useful in particular for scripts with larger source code.
APC (PHP Opcode Cache) in Shared Web Hosting
You'll be able to employ APC for your web apps with any of the shared web hosting
plans that we provide as it is pre-installed on our cloud web hosting platform. Turning it on will take only a mouse click inside the Hepsia Control Panel which comes with our shared solutions and several minutes later it will start caching the program code of your software applications. Our platform is really flexible, so you'll be able to use different configurations determined by the system requirements of the scripts. For example, you'll be able to activate APC for a couple of releases of PHP for the whole account and set the version that each site will use, or you could have the very same version of PHP, but enable or disable APC just for specified sites. This is done by placing a php.ini file with a line of program code within the domain or subdomain folder where you need the customized setup.