Search code examples
phpyiixcache

xcache doesn't speed up my php application


I have a php application which provides restful service,I want to speed it by xcache,but the situation is not as imagined.

My php application bases on yii 1.1,and the function I test does heavy db query and calculation.The elapsed time if not use xcache is 600ms(300ms db query) and things are on the whole the same if use xcache.

I can see xcache is really working by accessing xcache admin page.

Xcache can save time by avoiding creating reduplicated opcode,theoretically it can speed my application,but it doesn't here,so can someone explain?


Solution

  • I think the reason is that compilation time only the small part of the whole.I'll test it and put the result here later.