Identify which database raised a publish event
Version:
Knowing which database raised a publish:end or a publish:end:remote event can be very useful when you want to update the caches on, for example, remote Sitecore CD instances.
To identify the database that raised a publish:end event, run this code:
To identify the database that raised a publish:end:remote event, run this code: