I just installed Magento Commerce on my hosting account and am getting fairly sluggish performance. To help speed up the site, I installed the APC cache but am having trouble getting it to work. I used these install instructions.
I followed all the steps and seemed to get APC installed. No problems. When I check APC.php, it only shows 1 hit and 1 miss to the cache, which can't be right... Making me think APC isn't active or being used.
I tried to ensure Magento uses APC by adding the following to /var/www/app/etc/local.xml.
<cache>
<backend>apc</backend>
<prefix>alphanumeric</prefix>
</cache>
Any help is much appreciated.
APC or Alternative PHP Cache, is a free open-source opcode (operation code) caching plugin for PHP. With APC caching your PHP script executions can run more efficiently, by cutting down on dynamic PHP executions.
Magento collects configuration from all modules, merges it, and saves the merged result to the cache. This cache also contains store-specific settings stored in the file system and database. Clean or flush this cache type after modifying configuration files.
Enable/Disable Cache Types In your Magento backend, go to System > Tools > Cache Management. Check the box on which cache type you want to enable/disable. Then on the top left corner, select the appropriate action (Enable/Disable) and click the Submit button.
I suggest that you use a unique string other than "alphanumeric". That way if you are sharing APC with other users or applications, your cache will be differentiated.
Have you placed the xml nodes in the correct location in local.xml? The context should be like this:
...
<session_save><![CDATA[db]]></session_save>
<cache>
<backend>apc</backend>
<prefix>ReplaceThisWithSomeUniqueString</prefix>
</cache>
</global>
Also, make sure that you did a rm -rf /var/www/var/cache/*
after changing local.xml
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With