🔥 Just Launched! Werra Premium Template for HyväSee it in Action

How to Configure Magento 2 Full Page Cache

By Sanjay JethvaUpdated on May 22, 2025 2 min read

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.
1_caching applicatin_Enable varnish cache_1

  • 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:
2_Varnish-Configuration
  • 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 ConfigurationSelect 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.

Sanjay Jethva Full Image
Article bySanjay 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.