Fixing an issue where there were some items left in the batch-cache after the processing was done.