Varnish cache

By 7th May 2013December 12th, 2016No Comments

Varnish cache is disabled by default for all content. You can enable Varnish on your domain by adding the following parameter to the top of your ___general/ (or, as applicable).

Caching works on the premise of cache everything until told otherwise, you can fully control Varnish using configuration directives.


set $magestack_cacheable true;
set $magestack_cache_lifetime 7d;

It can be confirmed by checking the HTTP debug response headers MageStack-Cache

Also see,

! Any 3rd party admin extensions (with custom routers) or a change of admin URL must be explicitly set in the Varnish exclusion configuration file