the function cacheddir does not take into account the followSymlink flag. Two consecutive call on the same dir with a different followSymlink flag will return the same result.
more information would be really helpful. for example emerge --info, how to reproduce or something like this.
The bug is probably never triggered. I just found it by reading the code. This bug was mostly a reminder for ferringb to fix it one way or another before someone hits it. The code is in Portage.py:cacheddir (line 239 of portage-2.0.51-r2) the cache used stores the filetype which is retrieved by stat or lstat depending on the value of followSymlink. However if the cached value is retrieved, the followSymlink flag isn't taken into account. looks like a fix got in with rev 1.551
As noted, fixed.