Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我可以(不是必须)为同一页面上的每个访问者提供唯一的内容,我可以使用 apc 操作码缓存吗?我不确定我是否了解操作码的工作原理。如果只是将 php 结果保存到缓存并像“html”一样提供它,那么它对我来说毫无用处。我绝对需要在每个页面浏览量上运行 sql 查询。或者它是如何优化 php 的更好方法?应用程序的负载非常高 - 每秒大约 1000 次浏览量。它在 nginx + php-fpm 上运行。
是的你可以。APC 缓存程序,而不是它的结果。因此,代码每次都会以“优化”的方式执行。
如何确定从哪个资源对象加载、缓存的操作码或新编译的?