How APC Operations Cache Works

Can I use the opcode apc cache if I can (optionally) have unique content for each visitor on the same page? I'm not sure I understand how opcode works. If you just save the php result to the cache and serve it as "html", then this is useless to me. I definitely need to run sql queries on every pageview. Or is this the best way to optimize php? The application has a very high load - about 1000 page views per second. It works on nginx + php-fpm.

+6
source share
2 answers

Yes, you can. APC caches the program, not its result. Thus, the code will be executed every time, in a simple "optimized" way.

+7
source

How to determine which resource was loaded from cached opcode or compiled?

+1
source

Source: https://habr.com/ru/post/953872/


All Articles