APC操作码缓存在不同的文件版本上 [英] APC opcode caching on different file versions

查看:114
本文介绍了APC操作码缓存在不同的文件版本上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一台服务器,其中部署了多个 SAME 网络应用程序的多个 DIFFERENT 版本.

We have a single server with several DIFFERENT versions of the SAME web application deployed on it.

例如:

  • www.myserver.com
  • rc.myserver.com
  • alpha.myserver.com
  • www.myserver.com
  • rc.myserver.com
  • alpha.myserver.com

我们担心同一PHP类的版本之间可能会发生冲突. APC可以正确处理吗?如果没有,该如何解决?

We fear that there might be collisions between versions of the same PHP Class. Do APC correctly handle this? If not, how to workaround this?

感谢您的帮助.

推荐答案

APC根据类的 path 进行缓存,而不仅仅是类名.因此,只要您的每个版本都有自己的类副本,就不会有任何问题.

APC caches based on the path to the class, not just the class name. So as long as each of your versions have their own copy of the class you shouldn't have any problems.

这篇关于APC操作码缓存在不同的文件版本上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆