Database: refactored & optimized getReferencedTable cache logic
Merge pull request #1082 from hrach/selection-refcache

Database: refactored & optimized getReferencedTable cache logic