I have some events that go to a function to clear a cache item.
DataFactory dataFactory = DataFactory.Instance;
dataFactory.PublishedPage += ClearCache;
dataFactory.MovedPage += ClearCache;
dataFactory.DeletedPage += ClearCache;
The problem is when you set content for archiving in the future, the event "Published page" is triggered now but no event is triggered when the page actually is archived (haven't found any yet). Anyone has an ieda for how to solve this?
I know this is an old post, but I ran into a similar issue with trying to get stuff done when the page is archived by the Archive Function scheduled job.
What I did was hook into the MovedPage event, check if the page property PendingArchive is true (it should be if archive location is set and StopPublish is in the past), and ran some code if this was the case.