QueryCache pinning function added.