Yes; The location cache seems to be under 'locations/< locationId >', whereas the "locationsByContent" is under 'content/locations'.
This patch makes contentId, and contentId/root/<whatever> actual subkeys, so that this cache can be cleared (without knowledge of previously existing locations for any given contentId)