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
APIs must do manual cache management, but if they are properly installed and configured, they will "just work."
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
, 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.