eZ\Bundle\EzPublishCoreBundle\HttpCache::isInternalIPAllowed PHP Method

isInternalIPAllowed() protected method

Checks if $ip is allowed for Http PURGE requests.
protected isInternalIPAllowed ( string $ip ) : boolean
$ip string
return boolean
    protected function isInternalIPAllowed($ip)
    {
        $allowedIps = array_fill_keys($this->getInternalAllowedIPs(), true);
        if (!isset($allowedIps[$ip])) {
            return false;
        }
        return true;
    }