Skip to Content
Mastering Symfony
book

Mastering Symfony

by Sohail Salehi
April 2016
Intermediate to advanced content levelIntermediate to advanced
290 pages
5h 51m
English
Packt Publishing
Content preview from Mastering Symfony

Caches in a Symfony project

In this book, we will focus on two types of caches: the gateway cache (which is called a reverse proxy cache as well) and the doctrine cache. As you may have guessed, the gateway cache deals with all of those HTTP cache headers mentioned in the previous topics. Symfony comes with a very strong gateway cache out of the box. All you need to do is activate it in your front controller, and then start defining your cache expiration and validation strategies in your controllers.

That said, it does not mean that you are forced to use the Symfony cache only. If you prefer other reverse proxy cache libraries (that is, Varnish or Django), you are welcome to use them. The caching configurations in Symfony are transparent so you ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Persistence in PHP with Doctrine ORM

Persistence in PHP with Doctrine ORM

Kevin Dunglas
PHP Web Services

PHP Web Services

Lorna Jane Mitchell
Mastering PHP 7

Mastering PHP 7

Branko Ajzele
PHP 7: Real World Application Development

PHP 7: Real World Application Development

Doug Bierer, Altaf Hussain, Branko Ajzele

Publisher Resources

ISBN: 9781784390310Supplemental Content