You should always have "OPCache" enabled for php.New here regarding XenForo cache system, so was searching for which one's better "OPCache" or "APCu" since my hosting provider includes both.
While searching for difference here, found here you disliked it.
May I know the reason & can you suggest which one's between these two is better + which cache config is best ?
Previous post describing the limitations of ACPu;
I can't recommend APCu due it known deadlock issues* and how poorly it scales with large number of entries**, and finally the lack of expiry handling means when the cache is full it flushes everything.
*If a php process dies (say due to slow query killer) inside APCu's lock every other process will then wait forever for a lock which can't be released.
** APCu does a linear scan through every item on every APCu api call, which takes longer the more keys you have which makes the above deadlock easier to trigger