I need to remove the product_list block from cache Class: Magento\Catalog\Block\Product\ListProduct Block: /var/www/html/vendor/magento/module-catalog/view/frontend/templates/product/list.phtml
I have tried these solutions:
public function getCacheLifetime()
{
return null;
}
I have tried $_isScopePrivate = true; too.
Nothing seems to be working. I need to update the product collection on category list page based upon user input, so I need to remove the block from cache. Please help.