* Moved the logic of whether or not to use the querycache into a isCached() function