There are quite a few moving parts. These links should help locate information you might need.
How to setup a new website project using the Primo skeleton
How to configure the site to accept webhook payloads and clear the cache when documents are published
How to manually flush the cache
How to configure content managed 404 pages with Primo
How to configure content managed error pages beyond the 404