phpapcopcodeopcode-cache

Disable APC Cache for cached files?


I have a quite large website, in which there is a forum powered by phpBB. I have APC enabled with 1Gb of RAM. phpBB generates a lot of php files of cache (60 000-70 000 in my case), and they rapidly fill up APC memory. I was thinking to disable apc caching of such files through the apc.filter option. In your opinion, does it make sense?


Solution

  • I haven't run phpBB in a long time, so my answer is conditional:

    How fast are you running through your data in APC? If you're cycling through cache misses incredibly quickly, you've got a problem. If the number of misses stays constant and low over time I wouldn't worry about it. If you're storing lots of user data in APC that might be a way to shave it down. apc.php is a great way to get more details on what APC is up to, but remember it's an expensive page to load.

    (have worked on several PHP sites dealing with millions to tens of millions of unique visitors per day)