protected function findBlockCache()
	{
		// Don't search for cache in CMS
		if (! $this->pageRequest instanceof PageRequestView) {
			return;
		}

		$localization = $this->pageRequest->getLocalization();
		$blockCacheRequests = &$this->blockCacheRequests;
		$self = $this;

		$this->iterateBlocks(function(Block $block)	use ($self, $localization, &$blockCacheRequests) {

				$blockClass = $block->getComponentClass();

				$configuration = $self->getBlockCollection()->getConfiguration($blockClass);

				if ($configuration->getCache() instanceof CacheMapper) {

					$blockId = $block->getId();
					$blockCacheRequests[$blockId] = $configuration->getCache();

					$self->loadResponseCache($block, $localization);
				}
		});
	}
protected function findBlockCache()
	{
		// Don't search for cache in CMS
		if (! $this->pageRequest instanceof PageRequestView) {
			return;
		}

		$localization = $this->pageRequest->getLocalization();
		$blockCacheRequests = &$this->blockCacheRequests;
		$self = $this;

		$this->iterateBlocks(function(Block $block)	use ($self, $localization, &$blockCacheRequests) {

				$blockClass = $block->getComponentClass();

				$configuration = $self->getBlockCollection()->getConfiguration($blockClass);

				if ($configuration->getCache() instanceof CacheMapper) {

					$blockId = $block->getId();
					$blockCacheRequests[$blockId] = $configuration->getCache();

					$self->loadResponseCache($block, $localization);
				}
		});
	}
protected function findBlockCache ( ) { // Don't search for cache in CMS if ( ! $ this -> pageRequest instanceof PageRequestView ) { return ; } $ localization = $ this -> pageRequest -> getLocalization ( ) ; $ blockCacheRequests = & $ this -> blockCacheRequests ; $ self = $ this ; $ this -> iterateBlocks ( function ( Block $ block ) use ( $ self , $ localization , & $ blockCacheRequests ) { $ blockClass = $ block -> getComponentClass ( ) ; $ configuration = $ self -> getBlockCollection ( ) -> getConfiguration ( $ blockClass ) ; if ( $ configuration -> getCache ( ) instanceof CacheMapper ) { $ blockId = $ block -> getId ( ) ; $ blockCacheRequests [ $ blockId ] = $ configuration -> getCache ( ) ; $ self -> loadResponseCache ( $ block , $ localization ) ; } } ) ; }
Searches for block response cache.

@return void
Searches for block response cache .