Handling deleted tags in AEM
Hi everyone,
Just seeking some advice on best practices around handling deleted tags. As far as I understand...
Version: 6.3, SP1
- Deleting a tag whilst it's referenced by a number of content nodes (pages) will remove the tag from /etc/tags but it won't remove it from the page's cq:tags property.
- The com.day.cq.tagging.impl.TagGarbageCollector background job will clean-up tags that are no longer referenced by any pages.
- The cq:tags property of the pages will still contain references to the deleted tag until they are removed manually.
- The deleted tag shows up in the Touch UI in page properties section.
In view of the above, my questions are as follows:
- What is the expected behaviour of the TagManager API? What will it return the pages that still contain references to the deleted tags?
- Searching for the deleted tag in the Touch UI returns the pages that were previously tagged with it. Is that expected behaviour?
- Is my assumption correct that automatically removing the deleted tags (from the cq:tags property) from the referenced pages is a bad practice especially in scenarios where there are large number of pages that were tagged with it (high read/write - potentially killing off the author instance)?
- Is my assumption correct that deleting tags for the above reasons should be done seldom and that this type of activity should not be performed by regular authors?
- What would be the recommended way to remove references to deleted tags from a large number of pages? Is the answer figure out the taxonomy to start with and don't mess with it?
Look forward to a good discussion on this topic...
Thanks,
Arup