Give a simple example of what, where and how to cache?

    1 answer 1

    Caching should be something that takes a long time or requires a lot of computing resources, such as resizing images, long requests to the database and so on. There are many caching systems. You can use memcache and apc at the same time, but you should remember that they will eat the resources together. Install php5-memcache php-apc packages and use them, each of them has corresponding functions and classes.

    memcache

    apc