0

How to configure varnish in magento 2?

Selecting Varnish Cache in Stores Configuration is enough?

2

Selecting Varnish Cache in Stores Configuration is not enough. You also need to install Varnish on your server. You can refer to the following link to install Varnish with Apache on Ubuntu.

https://www.hostingadvice.com/how-to/install-varnish-apache-ubuntu/

After successfully installed Varnish Cache, you can configure it from magento admin configuration STORES > Configuration > ADVANCED > System > Full Page Cache.

3

Please check with below step :

Log in to the Magento Admin as an administrator.

Click STORES > Configuration > ADVANCED > System > Full Page Cache.

From the Caching Application list, click Varnish Caching.

Enter a value in the TTL for public content field.

Expand Varnish Configuration and enter the following information:

Click Save Config.
  • Thanks, Its working for me. :) – Anas Mansuri Aug 1 at 10:51
  • @AnasMansuri its my pleasure – Rv Singh Aug 1 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.