To add information in case publishing we can use TBBs. How can I add extra information in case of unpublishing. My scenario is as given below:
Consumers are caching the processed content from content delivery so whenever any new publish / unpublish is done then notification needs to be sent to consumer to clear their cache. I am using deployer extension to send cache clear notification.
The additional information required by consumer is: component name if component is published and page name if page is published. I was able to get this easily in case of publish, by parsing the package in deployer extension. However, in case of unpublish I don't have information of page name or component name available in the package and only item tcm id is available in the package.
How can I add this information to the package so that deployer extension can parse the information and get it?