Classes/Controller/VarnishController.php
/**
	 * BAN something from varnish
	 *
	 * @param string $cacheObject
	 * @return string
	 */
BAN something from varnish
@param string $cacheObject
@return string
BAN something from varnish @param string $cacheObject @return string
public static function ban($cacheObject) {
		if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['reverseProxyIP'] !== '') {
			$url = $GLOBALS['TYPO3_CONF_VARS']['SYS']['reverseProxyIP'] . ':6081';
			$siteName = 'Varnish-Ban-TYPO3-Sitename: ' . GeneralUtility::hmac($GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']);
			if (is_numeric($cacheObject)) {
				return HttpUtility::ban($url, array(
					'Varnish-Ban-TYPO3-Pid: ' . (integer) $cacheObject,
					$siteName
				));
			} elseif ($cacheObject === 'pages' || $cacheObject === 'all' || $cacheObject === 'system') {
				return HttpUtility::ban($url, array(
					'Varnish-Ban-All: 1',
					$siteName
				));
			}
		}
	}
public static function ban ( $ cacheObject ) { if ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'reverseProxyIP' ] !== '' ) { $ url = $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'reverseProxyIP' ] . ':6081' ; $ siteName = 'Varnish-Ban-TYPO3-Sitename: ' . GeneralUtility :: hmac ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'sitename' ] ) ; if ( is_numeric ( $ cacheObject ) ) { return HttpUtility :: ban ( $ url , array ( 'Varnish-Ban-TYPO3-Pid: ' . ( integer ) $ cacheObject , $ siteName ) ) ; } elseif ( $ cacheObject === 'pages' || $ cacheObject === 'all' || $ cacheObject === 'system' ) { return HttpUtility :: ban ( $ url , array ( 'Varnish-Ban-All: 1' , $ siteName ) ) ; } } }
BAN something from varnish
 @param string $cacheObject
 @return string
BAN something from varnish @param string $cacheObject @return string