function clearCache(item) {
  if (typeof item !== 'undefined') {
    delete docCache[item];
  } else {
    Object.keys(docCache).forEach((key) => {
      delete docCache[key];
    });
  }
}
Clears all document caches.
@param  {String} item (optional) the name of the cache item to be cleared.
@api public