Chapter 12. Caching in Symfony

In this chapter, you are going to learn about performance improvement using cache. Caching is a vast subject and needs its own book to be covered properly. However, in our Symfony project, we are interested in two types of caches only:

  • Application cache
  • Database cache

We will see what caching facilities are provided in Symfony by default and how we can use them. Then, we will proceed to what is not in Symfony and what options do we have in order to benefit from caching.

We are going to apply the caching techniques on some methods in our projects and watch the performance improvement.

By the end of this chapter, you will have a firm understanding about the usage of HTTP cache headers in the application layer and how to ...

Get Mastering Symfony 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.