#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2016
    Location
    Lakewood, WA
    Posts
    106
    Rep Power
    17

    PHP Cache Comparison


    First Question:

    Are there any opinions here from knowledgeable people concerning these two PHP caching systems:

    A) Zend Opcache
    B) Alternative PHP Cache (APC)

    I see from The Wikipedia that APC was at one time considered for inclusion in the PHP package, but PHP/Zend has opted for Zend Opcache instead. The comparison chart at Wikipedia says that Zend Opcache does not do object / session caching, and that file caching is still under development. These are two areas that APC has functioning.

    Opinions?

    Second question:

    With the only consideration being possibly compatibility, what is the NEWEST version of PHP that one might want to conservatively use for production applications?
    Last edited by Arty Zifferelli; May 13th, 2017 at 03:07 AM.
  2. #2
  3. Forgotten Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,024
    Rep Power
    9616
    Apples and oranges. Opcache and APCu (which is APC minus the bits that opcache does now) serve two separate purposes now: the former does script caching for performance and is mostly automatic, the latter does memory caching for explicit use by developers.

    7.1 is the latest series and has a few releases out so it's stable. That is what you should be using. 5.6 is still receiving security fixes but is otherwise dead so don't use it for new code.

IMN logo majestic logo threadwatch logo seochat tools logo