Topic: Inactive apcu cache.

Hi,

I have been running a website for more than one year on CentOS 6.6, Nginx1.6.2, php-fpm5.6.5remi with success. Until now I wasn't able to challenge the default configuration of all these packages, because I didn't want to test on my production server directly.
The performance was not that great but it was fine.
Recently, I rented another server and I can now test all the stack.
When playing with this new server, I discovered that there was an apcu-panel package available to get some idea about the apc cache performance.
When displaying the apcu-panel, I saw that nothing was really cached!
I can give all the configuration files but it's not going to be very useful because I didn't change the default configuration for most of the files.
Also, I repeated the installation several times and got the same result.
The apcu-panel shows that apcu is working fine but no files are cached.
The only special detail in my configuration is that I set my Nginx root directory in opt instead of var (SELinux context files have been set with semanage).
As I don't see how to investigate this problem further, I'm asking for help ...

Thanks in advance.

Re: Inactive apcu cache.

APCU is a user data cache only (old APC without opcode cache).

So, you need APC(u) aware code to use it.

Probably you are searching for an opcode cache, see php-opcache (the official PHP one)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Inactive apcu cache.

See this old blog entry http://blog.famillecollet.com/post/2013 … data-cache

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Inactive apcu cache.

I have installed php-opcache and downloaded Rasmus Lerdorf's Opcache-Status.
I've got now much better performances.

Thank you. You can mark this thread as closed.

Re: Inactive apcu cache.

smile

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi