Please help me to find out issue,I am using Magento 2.1.8 with custom porto theme. When change product stock status to outofstock it's not display in frontend.
In frontend product page there always show instock product label even I change status from admin.
but ,When i run reindex data command and it's working perfect. So how we solve this issue. why i have every time run reindec command ?