def invalidate_cache(self, product):
        """
        The method ``ProductCommonSerializer.render_html`` caches the rendered HTML snippets.
        Invalidate them after changing something in the product.
        """
        try:
            cache.delete_pattern('product:{}|*'.format(product.id))
        except __HOLE__:
            pass
dataset/ETHPy150Open awesto/django-shop/shop/admin/product.py/InvalidateProductCacheMixin.invalidate_cache