October 2, 2018
Full Page Cache and Challenges Associated With It

October 2, 2018

Full Page Caching (FPC) saves a copy of an entire page for a large group of users so that it can then load the saved copy of the page at a later date instead of building the page again. For instance, a product page may only have a few variations (logged out, logged in customer, logged in customer that receives discounts, etc.). Because hundreds of thousands of users (not to mention bots like Google) may see the same variation of a page, it makes sense to build the page once, then save it, and show everyone the saved version that’s right for their group. This makes the page load faster and reduces the overall load on the web server. Then, should something about the product change, like its description or availability, the cache can be cleared and rebuilt the next time someone (or a bot) tries to view it.
Caching an entire page can be problematic when the page contains user-specific content like a counter with the number of products in a customer’s cart, or a welcome message with the customer’s name. There are two main ways of solving for this challenge:
It’s important to understand that Full Page Caching is not a substitute for a fast website. Many pages such a My Account, Cart, and Checkout are always going to be unique and shouldn’t be cached. A product listing page may have combinations of filters and sorting which are too numerous to feasibly pre-cache. Caches will also be cleared from time to time as content changes. This can, at least for a short time, pull back the curtain and show your users just how fast or slow your website really is.
Instead, Full Page Caching should be thought of as a way to increase a site’s scalability. With an FPC, you can show the same page to one hundred users or one million users, all while building the page only once. This improved scalability can allow you to reduce your hosting costs, and/or increase your site’s traffic spike tolerance.