APC-Cache: Best setting for concrete5?

Permalink 1 user found helpful
Hey Dev/Ops!

I just installed php-apc and configured c5 to use it. The page load time was shortend about 1/2 secs. Very impressive. I also use apc.php for monitoring.

But now I try to figure out how I get the most out of apc and prevent problems for the future. Has somebody advices on how to configure apc properly?

I'm running a virtual server with 4 GB ram:

I did a 50 user test withhttp://loadimpact.com . I attached the screenshot of the apc monitoring results. Maybe this is helpful for advices on optimization.

Thanks in advance!

2 Attachments

View Replies:
i68040 replied on at Permalink Reply
I would also be interested in some APC guidance (recently moved my site to a host that allows APC). Should the concrete5 cache be enabled at all when APC is installed?
pvernaglia replied on at Permalink Reply
I have apc.shm_size at 128m and apc.max_file_size at 2m.

There is a good article about optimizing APC here:http://chrisgilligan.com/wordpress/how-to-configure-apc-cache-on-vi...

I also bumped up a couple PHP settings:
realpath_cache_size = 64m
realpath_cache_ttl = 180

The sites are running well
hursey013 replied on at Permalink Reply
What about in the dashboard > sitewide settings? What are you using for Basic Cache / Full Page Caching/ Full Page Cache Lifetime?
jbx replied on at Permalink Reply
A couple of lines you should add to your site/config.php if you haven't already:

define('CACHE_LIBRARY', 'Apc');
define('CACHE_ID', 'uniqueid');

This should mean that C5's cache will use APC for its backend...

hursey013 replied on at Permalink Reply
I could be wrong, but I believe defining CACHE_ID is no longer necessary as of 5.4.1.
jbx replied on at Permalink Reply
You're absolutely right - wasn't aware of that, but checking inside base.php if CACHE_ID is not defined it creates one. So all good :)