APC (PHP Opcode Cache)
Discover what the abbreviation ‘APC’ means, what APC can do PHP efficiency-wise and how to activate it for your account.
APC, or Alternative PHP Cache, is a PHP module that caches the output code of database-driven script software applications. Dynamic PHP Internet sites save their content within a database which is accessed whenever a visitor loads a page. The content which has to be displayed is gathered and the code is parsed and compiled before it is delivered to the website visitor. These actions take some processing time and include reading and writing on the web server for each page which is loaded. While this cannot be avoided for websites with constantly changing content material, there're numerous Internet sites that have the exact same content on a number of of their webpages all of the time - blogs, info portals, hotel and restaurant sites, and many others. APC is quite useful for this type of websites because it caches the already compiled code and displays it whenever visitors browse the cached pages, so the code doesn't need to be parsed and compiled all over again. Not only will this lower the server load, but it will also raise the speed of any site several times.
APC (PHP Opcode Cache) in Shared Web Hosting
You will be able to employ APC for your web applications with all of the shared web hosting
packages that we provide because it is pre-installed on our cloud web hosting platform. Enabling it will take only a mouse click in the Hepsia Control Panel that comes with our shared solutions and several minutes later it'll start caching the program code of your applications. Our platform is quite flexible, so you'll be able to use different configurations in accordance with the system requirements of the scripts. For instance, you will be able to activate APC for several releases of PHP for the whole account and pick the version that each Internet site can use, or you could have the exact same version of PHP, but activate or deactivate APC only for particular websites. This is done by putting a php.ini file with a line of code in the domain or subdomain folder where you require the customized setup.
APC (PHP Opcode Cache) in Semi-dedicated Servers
You can use APC for each script application which runs on your new semi-dedicated server
because the module is already installed on the cloud hosting platform where the account will be generated. Activating or deactivating APC for the entire account requires a single click from the Hepsia Control Panel, but if necessary, you can use the module just for specific sites. This is possible because of the flexibility of our cloud platform - several versions of PHP run on it simultaneously, so with a php.ini file placed in a site folder, you can select what version will be used for this specific site and whether APC should be enabled or disabled. Employing such a file allows you to use settings which are different from the standard ones for the account, so you will be able to take advantage of APC for some scripts where the module makes a difference and not for others where you can use a different kind of web accelerator.