Questions on PHP Pecl APCu

vlee

Well-Known Member
Oct 13, 2005
374
26
178
Spokane, Washington
cPanel Access Level
Root Administrator
I tested out OpCache with APCu and seems to work with no issues.

But is APCu really needed if run OpCache?

Or

Does APCu help and work well OpCache for extra performance caching and speed of a website?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,252
313
Houston
Hi @vlee

I tested out OpCache with APCu and seems to work with no issues.

But is APCu really needed if run OpCache?

Or

Does APCu help and work well OpCache for extra performance caching and speed of a website?
APCu is designed to be used alongside OpCache so yes it does help and work well with it. There's a really good stackoverflow article that describes this here: What is userland caching APCu extension in PHP?

Thanks!
 

vacancy

Well-Known Member
Sep 20, 2012
409
127
93
Turkey
cPanel Access Level
Root Administrator
When doing the opcache php code cache, the apcu makes object cache.

Combined use improves performance.

However, in apcu installation in cpanel environment, php doesn't do any caches although it appears in info. There is no cache entry when I install and check the apc.php file for monitoring. I couldn't figure out why this problem was caused.