AlgoliaSyncModuleDirectLease\PageAlgoliaExtension::onAfterWrite
To keep track of the state of our SiteTree, we need to track the unpublished pages so we can remove those from Algolia.
After write check if the page is archived
Signature
public function onAfterWrite()