#77204Typo3DatabaseBackend flushByTag() and collectGarbage()
Description
The 7.6 and 6.2 implementation of Typo3DatabaseBackend cache backend has bugs in two methods (in mysql-non-dbal versions). Those were introduced by #61814 and fixed in master with #77160
flushByTag() leaves orphaned tags in tags table – if a row has two tags and flushByTag() is executed on one tag, the other is left.
collectGargabe() does not find orphaned tags
collectGarbage() does not delete an expired cache row if it has no tags (fix: left outer join)
Task is to migrate the functional tests from master over to 7.6 (and 6.2?) – those will show the issues.