fixes #6804
Merge pull request #6805 from dotCMS/issue-6804-cachelocator-opens-db-connection

fixes #6804