7

I configured Varnish cache as well as the built in page cache. Now I've got some issues with the cache.

If I disable the built in cache the cache issue is resolved. So my question is can I use both the built in cache & varnish for my site? Or do I need to use only one of them? enter image description here

5

When you have Varnish cache enabled in Magento 2.x configuration, Page Cache is not active anymore, these are the only two options according to this line of code:

https://github.com/magento/magento2/blob/6ea7d2d85cded3fa0fbcf4e7aa0dcd4edbf568a6/app/code/Magento/PageCache/Model/Controller/Result/BuiltinPlugin.php#L70

  • so i can disable built in page cache,it won't effect the performance? – sivakumar Sep 6 '16 at 11:39
  • Only if you disable cache type in cache management you will get performance penalty. As in this case both cache types are going to become disabled, as both of them use the same configuration model: github.com/magento/magento2/blob/… – Ivan Chepurnyi Sep 7 '16 at 5:23
  • i disabled system->cache management->page cache . So automatically Varnish also won't work ? i mean if i want to use Varnish i should enable fpc cache type? – sivakumar Sep 7 '16 at 5:30

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.