Open shendy-a8c opened 1 year ago
@shendy-a8c is this issue related to (part of) HPOS project or is it unrelated? I've tagged as project
HPOS
, let me know if we should handle as maintenance instead (e.g. existing issue). FYI @mattallan
This issue was discovered during HPOS work but not specifically HPOS related. It is an existing issue and I think should be handled as a maintenance issue.
Describe the bug
Untrashing subscription parent order does not make subscription re-appear on My Account > Subscriptions page. This problem happens when HPOS is disabled or when HPOS is enabled but the authoritative order table is set to be the posts table.
I think the problem is within
WCS_Post_Meta_Cache_Manager
. I did a quick step-through fromWCS_Post_Meta_Cache_Manager::post_untrashed()
and found out somehowis_change_to_ignore()
returns true, sotrigger_update_cache_hook()
is never called. Hence, cache isn't updated.To Reproduce
Expected behavior
Subscription should re-appear on My Account > Subscriptions page.
Actual behavior
Subscription is missing from My Account > Subscriptions page.
Product impact
Additional context
This bug was discovered when I was working on https://github.com/Automattic/woocommerce-subscriptions-core/pull/383.