I am working on updating the Thank You page (pasting liquid code to the “Additional Scripts” section of the Checkout settings).
I am displaying some metafield (Single line text) values from the Order and Products to provide up-to-date status for the customer.
At first it looked like the Order metafield did not display at all, but later it did, but with an old value. I found the same case in other metafields.
This is NOT a browser cache issue. I have loaded the page after clearing the cache and also in Incognito mode.
I can also change the text of the labels and see the label change in the browser, but still see OLD values for the metadata fields.
If I go to the orders tab, I can see the correct value form my Order metafield. But then, if I choose More Actions->View Order Status Page, the Order Status page shows an old value (which may be blank).
It appears Shopify is not properly clearing some server-side cache of metafield values.
How can I get the Order Status page to correctly show the current values of the metafields?