public static function getCacheInfo(array $blockPathInfos, array $pBlockConfig)
    {
    	$configCacheName     = ConfigInterface::CONFIG_CACHE_NAME;
		$configCacheTtlName  = ConfigInterface::CONFIG_CACHE_TTL_NAME;
		$configCacheTypeName = ConfigInterface::CONFIG_CACHE_TYPE_NAME;
		$cacheInfo           = array();

    	if (! self::isCacheEnabled($pBlockConfig)) {
    		$cacheConfig = Agl::app()->getConfig('core-layout/blocks/' . ConfigInterface::CONFIG_CACHE_NAME);
    		if ($cacheConfig === NULL) {
	    		return $cacheInfo;
	    	}
    	} else {
    		$cacheConfig = $pBlockConfig[$configCacheName];
    	}

		$request   = Agl::getRequest();

        $cacheInfo[$configCacheTtlName] = (isset($cacheConfig[$configCacheTtlName])
        		                           and ctype_digit($cacheConfig[$configCacheTtlName])
        	                              ) ? (int)$cacheConfig[$configCacheTtlName] : 0;

        $type = (isset($cacheConfig[$configCacheTypeName])) ? $cacheConfig[$configCacheTypeName] : ConfigInterface::CONFIG_CACHE_TYPE_STATIC;

		$cacheInfo[CacheInterface::CACHE_KEY] = static::CACHE_FILE_PREFIX
		                                        . $blockPathInfos[1]
		                                        . CacheInterface::CACHE_KEY_SEPARATOR
		                                        . $blockPathInfos[2];

		if (Agl::isModuleLoaded(Agl::AGL_MORE_POOL . '/locale/locale')) {
			$cacheInfo[CacheInterface::CACHE_KEY] .= CacheInterface::CACHE_KEY_SEPARATOR
			                                         . Agl::getSingleton(Agl::AGL_MORE_POOL . '/locale')->getLanguage();
		}

		if ($type == ConfigInterface::CONFIG_CACHE_TYPE_DYNAMIC) {
			$cacheInfo[CacheInterface::CACHE_KEY] .= CacheInterface::CACHE_KEY_SEPARATOR
			                                         . \Agl\Core\Data\String::rewrite($request->getReq());
			if (Request::isAjax()) {
				$cacheInfo[CacheInterface::CACHE_KEY] .= CacheInterface::CACHE_KEY_SEPARATOR
				                                         . ConfigInterface::CONFIG_CACHE_KEY_AJAX;
			}
		}

		return $cacheInfo;
    }