Event for page."Archived"

Vote:
 

Hi all,

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?

Thanks

#112326
Oct 28, 2014 8:54
Vote:
 

Hi,

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.

#121998
May 25, 2015 9:22
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.