We now have a site that runs relatively fast. However, just because the site is fast doesn't mean we should leave it at that. There are times when fast is not fast enough. This chapter is all about optimizing our site by introducing compression and caching. We will start by looking at and using Symfony's caching framework before pushing Symfony's cache out to a caching server.
By the end of this chapter, you will know how to:
Use Symfony's caching framework
Optimize database calls through Propel by creating your own SQL calls and skipping the hydration process
Configure Symfony to help client-side caching
Configure Symfony to use
memcached
Every time a user makes a request, the request goes through Symfony's execution chain, queries the database (if needed), and then renders the view. This processing creates an overhead and depending on several factors, can eventually slow a site down. There are numerous methods that can be deployed in order...