How to Configure Magento 2 Full Page Cache
It’s very important to improve the response time and decrease the customer’s waiting time to reload the server. It will improve the performance of your site better.
Magento 2 provides the full page cache on the server to optimize the display of various pages such as product pages, category pages, and CMS pages.
Follow the guide below to configure Magento 2 Full Page Cache and speed up your site and hence, improve your Google ranking and sales!
Steps to configure Magento 2 Full Page Cache:
- Log in to the Admin Panel.
- Navigate to Stores > Configuration > Advanced > System option
- Open the ‘Full Page Cache’ section.
- Under the Caching Application field, select either Built-In Application or Varnish Application.
- Set the time-out for page cache in the TTL for public content field. Default Value: 86400
- In case you chose the Varnish option in Caching Application, configure the Varnish Configuration option as below:
- Access List: Input the IP address, IPs access list separated by “,” that can purge Varnish configuration for config file generation. If the field is empty, the default value localhost will be saved.
- Backend Host: Enter the IP address of the backend host that generates config files. Default Value: Localhost
- Backend Port: Identify the backend port that is used to generate config files. Default Value is 8080, however, it depends on the server.
- Export Configuration: Select the button for the version of Varnish that you use from either Export VCL for Varnish 3 or Export VCL for Varnish 3.
- Save your configuration.
I’d like to hear more about how you implemented these steps in the comments section below. Feel free to post your doubts and I’ll try to solve it.
Rate the post with 5 stars if you liked it.
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
Prev
How to Set Dynamic Email Subject in Magento 2
How to Add Top Link in Magento 2
Next