I am new to optimizing and maintaining Magento 2.2. I have an installation that are setup with:
- Dedicated server
- Ubuntu 16.04
- PHP 7
- MySQL 5.7
- Magento 2.2
- Varnish 4
I am confused about a couple of things regarding indexing, cache & varnish and I am sorry if my questions seems stupid/weird:
- It seems when I make some changes i have to clear the cache in the admin and restart Varnish (service nginx restart) from the shell for the changes to be shown in the front-end. Is it supposed to be like this or can I somehow link restart of varnish with clearing of cache? Or is there something I am missing?
- After restart of Varnish it seems there are a "warm up" time period as customers visits the pages. I there anyway to pre-warm up varnish/cache?
- Prices changes frequently everyday for a lot of products and it seems that I have to re-index (and clear cache + restarting varnish) often for those prices to be shown in the front-end. Problem is the prices index takes +45 minutes and apparently makes the front-end unavaliable. The question is if there are a better way to achieve the same result?