/**
  * {@inheritdoc}
  */
 public function write(array $items)
 {
     $this->versionManager->setRealTimeVersioning($this->realTimeVersioning);
     foreach ($items as $item) {
         $this->incrementCount($item);
     }
     $this->productManager->handleAllMedia($items);
     $this->productManager->saveAllProducts($items, ['recalculate' => false]);
     $this->cacheClearer->clear();
 }