[Prestashop help] How to enabled APC Cache for Prestashop website?
The our statistics, if the speed of a prestashop website increase a second, you can lost:
- Page views decrease 12%
- Customer satisfaction decrease 17%
- Conversions rate decrease 8%
So speed up your prestashop website is essential, it will bring to your prestashop more customer, more orders and higher ranking in Search Engine as Google, Bing….
Cache is a best solution for speed up a Prestashop website. The Prestashop has included many Cache Systems into it’s platform as: Memcached via PHP::Memcache, Memcached via PHP::Memcached, APC Cache, Xcache.
In this post, Buy-Addons team will help you How to enable APC Cache for your Prestashop website.
Step 1: Check APC PECL extension already installed in your hosting or not yet?
Create a PHP file (example it is named test_apc.php) in your hosting with following code:
<?php
if(extension_loaded(‘apc’) && ini_get(‘apc.enabled’))
{
echo “APC enabled!”;
} else {
echo “APC is NOT enabled!”;
}
Go to your browser, enter the URL to execute this PHP file, example http://your-prestashop-site.com/test_apc.php
If it is showing APC enabled! -> Okay, go to step 2.
If it is showing APC is NOT enabled! -> Your hosting has not yet installed APC PECL extension. You should ask your hosting provider install it like this guide: https://www.php.net/manual/en/apc.installation.php
Step 2: Enable APC Cache in Prestashop System
- In Prestashop 1.6: go to Advanced Parameters > Performance
- In Prestashop 1.7: go to CONFIGURE > Advanced Parameters > Performance
In this setting page, scroll to Caching section:
- Change Use cache = Yes
- Checked option: APC (you must install the APC PECL extension)
Leave a reply
You must be logged in to post a comment.