prevent clicking on the "Share Documents" button if not all docs / versions are ready to go
update the shared docs prepared cache when document is updated