DDF-391  changed to only do caching if cacheEnabled and no pending caching