在一台服务器上为magento 2和prestashop使用varnish缓存

在一台服务器上为magento 2和prestashop使用varnish缓存,prestashop,magento2,varnish,Prestashop,Magento2,Varnish,我想在一台服务器上为magento 2和prestashop使用varnish缓存。我问我的朋友,但他告诉我不行。因为它们有不同的配置。我可以安装vanish cache并将其仅用于magento还是同时用于两者?您可以在一台服务器上安装Varnish以同时用于Magento2和Prestashop 然而,我怀疑Magento2和Prestashop在Varnish中都需要一些特殊的配置。因此,VCL将更加复杂 假设Magento2和Prestashop在不同的主机上使用,如果配置冲突,您可以根

我想在一台服务器上为magento 2和prestashop使用varnish缓存。我问我的朋友,但他告诉我不行。因为它们有不同的配置。我可以安装vanish cache并将其仅用于magento还是同时用于两者?

您可以在一台服务器上安装Varnish以同时用于Magento2和Prestashop

然而,我怀疑Magento2和Prestashop在Varnish中都需要一些特殊的配置。因此,VCL将更加复杂

假设Magento2和Prestashop在不同的主机上使用,如果配置冲突,您可以根据域名在VCL中添加逻辑

if(bereq.http.host == "magento-host.com") {
  // specific config for magento
}
if(bereq.http.host == "prestashop-host.com") {
  // specific config for prestashop
}

我现在不能查。谢谢