meta values not showing without hard-refresh
-
After entering a meta value, saving, and immediately re-loading the CPT edit page, the meta values don’t show. Steps to reproduce:
1. Edit a CPT and enter some meta values in the sidebar
2. Save or Publish
3. Go back to the CPT listing and click on the new CPT. You won’t see any of the meta values that you just entered.
4. Do a hard-refresh of the edit screen and you will see them.It seems that the meta values are being saved, it’s just that the user’s browser has cached the REST API calls so that it doesn’t get the saved values immediately.
One possible solution is to add the current timestamp to each REST API call as a querystring var so as to make sure you’re getting a fresh copy.
Tested in Chrome v80.0.3987.87 on macos.
- The topic ‘meta values not showing without hard-refresh’ is closed to new replies.