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