PHP APC CLI opcode cache has no effect

i want to use apc as cli with opcode cache feature.

using apc.enable_cli to true. but noting happened in benchmark time and memory usage.

; php.ini
apc.enable_cli = 1

but in web based usage different. i see how work apc and do magic for running php scripts. about half memory usage also about 0.01 faster than normal run php script.

but i think php dont use opcode cache during using apc in cli. how can i use it. is it possible?

Upvotes: 0

Views: 308

Answers (1)

xyphoid
xyphoid

Reputation: 1458

I wouldn't expect apc to give any improvement in performance on the command line, because the apc cache is going to be dropped every run.

Upvotes: 2

Related Questions