0

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?

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

2 Comments

so how can i imporve complex cli applications in php?
Profile your app using xdebug+kcachegrind and figure out where the slow bits are. apc is really not going to be the answer for CLI apps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.