开发者

PHP - Cache arrays saved in included files or not?

Should I 开发者_开发问答use cache to store arrays that are saved in included files? include("filename.php");.. Those included files only have arrays and are about 2 to 5 kilobytes so they are pretty small.

But in term of performance, what is the best? Use cache or simply use include? Just to let you know, I use APC cache.

Thanks for your suggestions!


The arrays hardcoded in those PHP files are already cached, both by APC and probably also by your OS file cache. No need to duplicate it somewhere else.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜