Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


APC, XCache, Memcache and Zend OPCache?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

APC, XCache, Memcache and Zend OPCache?

Hey guys,

I know this may be discussed before, but the situation is a bit different now. APC seems to be replaced by Zend OPCache.

Can I assume that with PHP<=5.3 and below, the best bet is APC+Memcache, while PHP>=5.4 would be OPCache+Memcache?

Comments

  • nfnnfn Veteran
    edited January 2014

    I use Zend OPCcache + APCu with great results and a lower memory footprint.
    I don't use Memcache with a single VPS/Server, only in a multi environment.

    Edit: Changed APCU to APCu

    Thanked by 1jrdai
  • @nfn said:
    I use Zend OPCcache + ACPU with great results and a lower memory footprint.
    I don't use Memcache with a single VPS/Server, only in a multi environment.

    What is your PHP version?

  • I use apc for caching op code and then i use memcache for objects caching since it makes it easy to share obejcts between more nodes in the feature with out changing ur code base.

  • nfnnfn Veteran
    edited January 2014

    jrdai said: What is your PHP version?

    I'm using 5.5.8 from dotdeb

  • sleddogsleddog Member
    edited January 2014

    nfn said: I'm using 5.5.8 from dotdeb

    Then you have to use the builtin opcache -- http://php.net/opcache -- as APC isn't available.

    Whether or not you use memcache in addition is your choice.

  • xyzxyz Member
    edited January 2014

    sleddog said: APC isn't available.

    He made a typo, but did say APCu (APC user cache component only) as opposed to full APC.

  • And unless you are using a distributed multi server environment, there's literally no meaning in using memcache. You will get better performance using APC (< PHP 5.5)

  • jrdaijrdai Member
    edited January 2014

    @ironhide said:
    And unless you are using a distributed multi server environment, there's literally no meaning in using memcache. You will get better performance using APC (< PHP 5.5)

    it is said for 5.4 and 5.5, Zend Opcache works better than APC

Sign In or Register to comment.