On the Internet, I met that the subject caches different entities. How true is this?
If you can detailed response.

How to cache a file using apc?
How to get it?

    1 answer 1

    they only have the word "cache" in common.

    • apc is the php bytecode cache so that the interpreter does not interpret it anew each time, but executes the already interpreted code from the cache, it works as a module for php.

    • memcache is a key / value storage in RAM, hung on a port or unix socket.

    • wikipedia - very informative encyclopedia. ) there is a lot of things, it is worth reading)

    • The reason for the question was how to use both in one project? - ferz1
    • @MuFF, can we use them at the same time?) - nolka
    • And who's stopping you? As said already, they cache completely different things. One is the executable byte-code, that is, it will not re-parse and execute your php-code, but simply execute what has already been written. And the other will keep in memory everything YOU want (users, session, html chunks). Both are made as modules to php, so that it is easy to install both of them from PECL. PS: In the Hayload, they should not just be used, but must be used together - Jim_Moriarty