You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking for information about suggested way to remove product variations and I found it in #9543. I do that like it's written there and I noticed problem with transients not cleared after variations removal.
Process is following:
I add new variations to the product using PUT request
Than I remove expired ones by using DELETE in the loop
After that, when I make GET request on the product, error 500 occurs.
WC_Product_Variable::get_children() uses get_transient() function and thats why I think it's transient issue.
Problem disappears once I update product on the edit page. Also $product->get_children() shows less children than.
The text was updated successfully, but these errors were encountered:
I was looking for information about suggested way to remove product variations and I found it in #9543. I do that like it's written there and I noticed problem with transients not cleared after variations removal.
Process is following:
After that, when I make GET request on the product, error 500 occurs.
Error log:
WC_Product_Variable::get_children()
usesget_transient()
function and thats why I think it's transient issue.Problem disappears once I update product on the edit page. Also
$product->get_children()
shows less children than.The text was updated successfully, but these errors were encountered: