• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Best Cache partner for Zend OPcache

Marcus

Well-known member
#1
There are two kind of caches, from what I know, ZEND Opcache which is delivered with PHP 5.5 caches one of the two cache types. I used APC which can cache both categories. Now with Opcache, I want to have some tool helping me caching the other category. What do you recommend?
 

jörgk

Active member
#2
hello, the same question i have aked in the support system here. mike told me, that memcache works good. i have installed it and i am happy with opcache+memcache.
 
#4
Zend optimizer + has been made open source and is now a part of the latest release which they now call zend opcode. Please ask yourself a question : Had it been a good product would it not sell? If it was selling well why make it opensource? I dont know what went on behind the scene but I am still clueless why shun apc for zend optimizer. APC at the moment is miles ahead of zend.

APC with 5.3 would do a better job any day. I have an instance of 5.5 running with zend opcode and I have spent weeks doing different things and my conclusion is that its not time yet to move to a newer version of php. If you have the expertise to squeez out what you want from 5.5 then by all means :) Dont forget to share the outcome here. I would love to hear.
 

Slavik

XenForo moderator
Staff member
#5
Zend optimizer + has been made open source and is now a part of the latest release which they now call zend opcode. Please ask yourself a question : Had it been a good product would it not sell? If it was selling well why make it opensource? I dont know what went on behind the scene but I am still clueless why shun apc for zend optimizer. APC at the moment is miles ahead of zend.

APC with 5.3 would do a better job any day. I have an instance of 5.5 running with zend opcode and I have spent weeks doing different things and my conclusion is that its not time yet to move to a newer version of php. If you have the expertise to squeez out what you want from 5.5 then by all means :) Dont forget to share the outcome here. I would love to hear.

Zend Optimizer was/is a fantastic product, and top of my head was anything upto 30% faster than APC out the box.

Honestly I think using Zend Optimiser in the PHP core over APC is a fantastic move.
 
#6
The major draw back I find with zend opcode is that it would refresh itself once the memory is full unlike apc. Please correct me if I am wrong. APC on the other hand would give you a more consistant performance by reusing sectors which zend cant do from what I understand. Also apc does a lot more then just opcode cache.
Another major + with APC is that for people like me who cannot afford a big box, it would achieve a lot more with lesser amount of memory in use as opposed to zend. I am still learning though. It would be great if you could explain if this is not the case.
 
#7
I must admit that my perspective might be a little different when I say fast and consistant etc. I have Google bot in mind while doing anything and the time it would take for Google bots to download a page. Google likes pages that do not fluctuate and zend defeates that purpose. Real users may not notice it but when zend refreshes its memory there will be a delay in downloading pages for search engine bots and it is a factor in ranking.
 

Xon

Well-known member
#10
I've been using Redis, with my addon which implements proper multiGet pipelining (bit of a hack how it is injected).

Being able to save and reload your cache state really is handy. I've been meaning to get working the multi-redis instance support in the underlying library I'm using.
 

Tracy Perry

Well-known member
#12
One of the biggest features of memcached is that it does not have to be limited to your one server instance. I have 4 instances being shared amongst 6 sites, with 4 of the sites being set up for the local instance and the other 3 remote instance and the other 2 using the 4 remote instances.
 

Amin Sabet

Well-known member
#13
One thing I'm seeing is that APCu is getting slightly more cache requests per second than memcached was getting.
 
Last edited:

Amin Sabet

Well-known member
#14
Here are some data from using memcached on my server one day and APCu another. It's not quite apples to apples given the different duration of each as well as different time of day, but some may find it interesting. I'm using Opcache with PHP 5.4.



 

Amin Sabet

Well-known member
#18
I'm just trying to understand why you have 125,764 items and 622MB in memcached. Do you have sites other than your Pinoy Latest Technology Forums on your server?
 

Amin Sabet

Well-known member
#20
Gotcha. I wish I had a better understanding of types of cache and whether the numbers I'm seeing are reasonable for what I'm doing or whether there are items I should be caching that I am not.