Should I change the source code to use xcache or other PHP code?

I would like to use opcode cache code such as APC and XCache.

To benefit from these caches, do I need to change something on my php code or just install one of them?

I saw that there is an API, should I use them?

thank

+3
source share
3 answers

APIs must do manual cache management, but if they are properly installed and configured, they will "just work."

0
source

About APC: you can just install APC and it will work.
If you want, you can adjust the memory size allowed for APC.
And I recommend setting this parameter:

apc.slam_defense = Off
0

, APC " ", PHP-, , . .

However, you can also use APC to store settings that you may have previously obtained from a database search, for example. See apc_store and related functions.

0
source

All Articles