简体   繁体   English

我需要使用Opcache进行memcached吗?

[英]Do I need memcached with Opcache ?

I don't know anything about caching other than having read that people use APC/Opcache/Memcache/Memchached/Varnish ... to makes PHP go faster :) 除了阅读人们使用APC / Opcache / Memcache / Memchached / Varnish之外,我对缓存一无所知......让PHP变得更快:)

So, I tried APC last week since I was on PHP5.4, but then updated my to PHP5.5 so I could use Opcache. 所以,我上周试用了APC,因为我使用的是PHP5.4,但后来更新了我的PHP5.5,所以我可以使用Opcache。 So, now that Opcache is working, I need to even make my wordpress site faster, and since I have heard that APC is not compatible with opcache, I would like to know if memcached is OK to use, as I am almost certain varnish is OK because it is not related to PHP. 所以,现在Opcache正在工作,我甚至需要让我的wordpress网站更快,因为我听说APC与opcache不兼容,我想知道memcached是否可以使用,因为我几乎可以肯定清漆是好的,因为它与PHP无关。

So, will using memcached further improve my site? 那么,使用memcached会进一步改善我的网站吗?

OPcache is for accelerating code access. OPcache用于加速代码访问。 memcached is for accelerating data access. memcached用于加速数据访问。 They are completely different, and completely independent. 它们完全不同,完全独立。

While OpCache doesn't support the user-side caching functionality of APC, it can still be a useful tool, and so the Pecl module, APCU was extracted from the original. 虽然OpCache不支持APC的用户端缓存功能,但它仍然是一个有用的工具,因此Pecl模块, APCU是从原始模块中提取的。 It's entirely compatible with the original, but leaves the zend-code cache for OpCache. 它与原始版本完全兼容,但为OpCache留下了zend-code缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM