fixes #4772
#4772
Merge pull request #4842 from dotCMS/issue-4772-cache-comparator-compare-violates-contract

Issue 4772 cache comparator compare violates contract