Republish content
Sometimes it may be necessary to republish content to the Publishing API. This will refresh the content on the website.
For example if we make an update to govspeak and a publishing application pre-renders that content prior to its submission to Publishing API, that would require us to re-render and save new HTML for content.
This process varies per app and requires Production access.
You may wish to test first on integration, prior to carrying out the republish in production.
Whitehall
If the documents are in Whitehall, you can republish content (individually or in bulk) via the user interface:
Try to pick the task most focused to the scope of what you need to republish to avoid unnecessary load. You can monitor the effect on the publishing queue via these Grafana dashboards:
Content Publisher
If the document is in content publisher, there is a resync Rake task you can run.
You can resync a single document by passing it a content ID and locale:
k exec deploy/content-publisher -- rake resync:document[a-content-id:locale]
or you can resync all documents:
k exec deploy/content-publisher -- rake resync:all