I'm encountering an error when I delete cache by flush cache storage. the issue when I add product to cart it causes Call to a member function on a non-object. I checked the product object data and seems methods are missing .
The product type is bundle, and I'm adding to cart using custom code. the missing methods are from the bundled products not the main one.