Take the 2-minute tour ×
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

In the official documentation it says Varnish is supported out of the box and there should be an option to generate a VCL file compatible with Varnish 3 and Varnish 4. I can't find this using the admin panel or CLI. Has anyone tried to use this feature?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

screenshot

  1. Log in to the Magento Admin as an administrator.
  2. Click STORES > Configuration > ADVANCED > System > Full Page Cache
  3. From the Caching Application list, click Varnish Caching
  4. Enter a value in the TTL for public content field.
  5. Expand Varnish Configuration and enter the following information:
  6. Click Save Config.
  7. Click one of the export buttons to create a default.vcl you can use with Varnish.

http://devdocs.magento.com/guides/v2.0/config-guide/varnish/config-varnish-magento.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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