Added something to only conditionally cache an item.