I think the question speaks for itself..

My concern is, we would be modifying some PHP files here and there. Will the accelerator(s) know that it needs to recompile modified files (i assume they would, common sense)?

However, i didnt find any documentation on this matter.

That said, would it help (speed up) installing PHP accelerators on development environment (say localhost)?

有帮助吗?

解决方案

Unless you are debugging your cacher, caching should be turned off for development.

其他提示

Unless you want to benchmark on your development environment I would simply call this pre-mature optimization.

Most of the cachers do check for updated files, but you might be wasting time while the files are cached, etc.

Leave development for flexibility and eliminate any problems with caching. That is at least what I would do.

The accelerators do check if files have been modified (well, the only one I have experience with is APC, but I suspect the others will be similar), so you shouldn't have any problems using an accelerator in a development environment (although the benefit gained will be minimal, since if files are being constantly changed the accelerator will have to constantly re-read all the code).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top