Flag of Ukraine
SymfonyCasts stands united with the people of Ukraine

What's new in Symfony 2.2 + ESI Fragments Bonus

22:45

What you'll be learning

Symfony 2.2 is out and wonderful! If you're thinking about upgrading, there are a few important changes to be aware of and a bunch of great new features.

In this screencast, we'll talk about how to upgrade, things to watch out for, and some new features. We dive a bit deeper into caching and ESI in Symfony by exploring the new fragments framework (formerly sub-requests). If you've been thinking about caching or are confused by the new changes, this is for you!

Highlights:

* The new fragments framework, ESI, the `ProxyListener`, trusted proxies
* Host Routing
* New tools inside the console commands
* Upgrading to Symfony3!!??

Your Guides

Ryan Weaver Leanna Pelham


Join the Conversation?

3
Login or Register to join the conversation
Default user avatar

Nice info!

What if I have a reverse proxy in front of the app which does load balancing and ssl terminating, but no ESI. In that case is it recommended to set trusted_proxies as well, or not?

Reply

Yes! Otherwise you'll get the wrong IP address for things like $request->getClientIp() and a few other things. ESI is only one reason that you need to trust your proxies. Great question.

Cheers!

Reply
Default user avatar

thanks.:-)

To tell the whole truth, I always found the docs for trusted_proxies to be a bit lacking, and the name in itself not too explicit either...

Reply
Cat in space

"Houston: no signs of life"
Start the conversation!

userVoice