CHAPTER 5

images

Caching

Often, when dealing with large amounts of data, we run into performance bottlenecks. These can happen for any number of reasons, and can mostly be avoided by good caching. If you are wondering what I mean by caching, we’ll look at an example in a moment.

Goals

  • We should identify the need for using caching, in the first place. We will not be able to realize the full potential of caching unless we understand the problems that it solves.
  • We need to learn how to access Memcached servers, which we will use to store cached data. This requires us writing the classes to interact with a Memcached server.

Performance Bottlenecks

Get Pro PHP MVC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.