{"id":15736796,"date":"2022-06-14T16:16:12","date_gmt":"2022-06-14T16:16:12","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-invalidate-cache-when-using-rest-api\/"},"modified":"2022-06-14T16:16:12","modified_gmt":"2022-06-14T16:16:12","slug":"how-to-invalidate-cache-when-using-rest-api","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-invalidate-cache-when-using-rest-api\/","title":{"rendered":"How to invalidate cache when using REST API?"},"content":{"rendered":"<p>We have a developer who is updating product prices via REST API but we are having trouble with the front end displaying the updated prices. If I clear cache they update. Is there a proper way to update the price via REST API so that it automatically invalidates the cache for that product? Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-15736796","topic","type-topic","status-publish","hentry","topic-tag-cache"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15736796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15736796\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15736796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}