MGT Development Environment - Varnish Cache

Varnish Cache is pre-installed and configured but disabled, which means all requests are going through Varnish, but they aren't cached.

After enabling Varnish Cache in the Magento Backend, you can enable Varnish:

  1. Open the Varnish configuration file: /etc/varnish/default.vcl
nano /etc/varnish/default.vcl
  1. Search for the following line:
return (pass);

and comment it by putting a # in front:

#return (pass);
  1. Restart the Varnish Service to apply the change via supervisor:
supervisorctl restart varnish