APC (PHP Opcode Cache)
Uncover what the acronym ‘APC’ means, precisely what APC is able to do PHP performance-wise and approaches to enable it for your account.
APC, or Alternative PHP Cache, is a PHP module that caches the output code of database-driven script applications. Dynamic PHP sites save their content inside a database which is accessed whenever a visitor opens a page. The content which should be displayed is gathered and the code is parsed and compiled prior to it being delivered to the website visitor. All these actions need some processing time and include reading and writing on the hosting server for each and every page which is loaded. While this cannot be avoided for Internet sites with regularly changing content material, there're numerous Internet sites that present the exact same content on many of their pages at all times - blogs, informational portals, hotel and restaurant sites, etc. APC is really useful for this kind of sites since it caches the already compiled code and displays it any time visitors browse the cached webpages, so the code doesn't have to be parsed and compiled all over again. Not only will this lower the server load, but it will also increase the speed of any Internet site several times.
-
APC (PHP Opcode Cache) in Website Hosting
APC is pre-installed on our state-of-the-art cloud platform, so you can use it for your applications irrespective of the
website hosting plan that you select when you sign up. The module can be enabled from your Hepsia internet hosting Control Panel that is used to maintain the shared accounts and just a couple of minutes later it will boost your Internet sites because it'll start caching their code. If you wish to run websites with different system requirements or take advantage of different web accelerators for any of them, you can customize the software environment by putting a php.ini file inside the desired domain folder. Thus, you can enable or disable APC not only for a particular website without affecting the other websites in the account, but also for a specific version of PHP since our platform is compatible with multiple versions at the same time.
-
APC (PHP Opcode Cache) in Semi-dedicated Hosting
You can use APC for each script application which runs on your new
semi-dedicated hosting since the module is pre-installed on the cloud hosting platform where the account will be created. Activating or deactivating APC for the entire account requires a single click inside the Hepsia Control Panel, but if needed, you could use the module just for certain sites. This is possible as a result of the flexibility of our cloud platform - several releases of PHP run on it concurrently, so with a php.ini file placed in a site folder, you can select what release will be used for this specific website and whether APC should be enabled or disabled. Employing such a file enables you to use settings that are different from the standard ones for your account, so you could take advantage of APC for many scripts where the module makes a difference and not for others where you may take advantage of some other kind of web accelerator.