src/Forms/Form.php
protected function canBeCached()
    {
        if ($this->getSecurityToken()->isEnabled()) {
            return false;
        }
        if ($this->FormMethod() !== 'GET') {
            return false;
        }

        // Don't cache if there are required fields, or some other complex validator
        $validator = $this->getValidator();
        if ($validator instanceof RequiredFields) {
            if (count($this->validator->getRequired())) {
                return false;
            }
        } else {
            return false;
        }
        return true;
    }
protected function canBeCached()
    {
        if ($this->getSecurityToken()->isEnabled()) {
            return false;
        }
        if ($this->FormMethod() !== 'GET') {
            return false;
        }

        // Don't cache if there are required fields, or some other complex validator
        $validator = $this->getValidator();
        if ($validator instanceof RequiredFields) {
            if (count($this->validator->getRequired())) {
                return false;
            }
        } else {
            return false;
        }
        return true;
    }
protected function canBeCached ( ) { if ( $ this -> getSecurityToken ( ) -> isEnabled ( ) ) { return false ; } if ( $ this -> FormMethod ( ) !== 'GET' ) { return false ; } // Don't cache if there are required fields, or some other complex validator $ validator = $ this -> getValidator ( ) ; if ( $ validator instanceof RequiredFields ) { if ( count ( $ this -> validator -> getRequired ( ) ) ) { return false ; } } else { return false ; } return true ; }
Can the body of this form be cached?

@return bool
Can the body of this form be cached?