We have an import that creates metafields from the code. The relations and the values reach the DB. But the fields don't show on the Commerce UI or on the code retrieving the data for PDPs.
When the site is restarted the metafields are present on the UI too.
Do you know how to make the fields displayed without a site restart? (for production)
I already looked at the MetaField.ClearCache and MetaClass.ClearCache, but no luck. Is there a call that we can do when the fields are created to force them to be dislayed?
Thanks