src/Sulu/Bundle/HttpCacheBundle/EventSubscriber/InvalidationSubscriber.php
private function invalidateDocumentStructure($document)
    {
        if (!$this->cacheManager) {
            return;
        }

        $structureBridge = $this->structureManager->wrapStructure(
            $this->documentInspector->getMetadata($document)->getAlias(),
            $this->documentInspector->getStructureMetadata($document)
        );
        $structureBridge->setDocument($document);

        $this->cacheManager->invalidateTag($document->getUuid());
    }
private function invalidateDocumentStructure($document)
    {
        if (!$this->cacheManager) {
            return;
        }

        $structureBridge = $this->structureManager->wrapStructure(
            $this->documentInspector->getMetadata($document)->getAlias(),
            $this->documentInspector->getStructureMetadata($document)
        );
        $structureBridge->setDocument($document);

        $this->cacheManager->invalidateTag($document->getUuid());
    }
private function invalidateDocumentStructure ( $ document ) { if ( ! $ this -> cacheManager ) { return ; } $ structureBridge = $ this -> structureManager -> wrapStructure ( $ this -> documentInspector -> getMetadata ( $ document ) -> getAlias ( ) , $ this -> documentInspector -> getStructureMetadata ( $ document ) ) ; $ structureBridge -> setDocument ( $ document ) ; $ this -> cacheManager -> invalidateTag ( $ document -> getUuid ( ) ) ; }
Invalidates the structure of the given document.

@param $document
Invalidates the structure of the given document .