Fix the cache validation queries
Merge pull request #84 from LocalData/fix-queries

Fix the cache validation queries