private function invalidateDocumentUrls($document, $locale)
    {
        if (!$this->cacheManager) {
            return;
        }

        foreach ($this->getLocaleUrls($document, $locale) as $url) {
            $this->cacheManager->invalidatePath($url);
        }
    }