lib/Doctrine/CouchDB/View/Query.php
public function setStale($flag)
    {
        if (!is_bool($flag)) {
            $this->params['stale'] = $flag;
        } elseif ($flag === true) {
            $this->params['stale'] = 'ok';
        } else {
            unset($this->params['stale']);
        }

        return $this;
    }
public function setStale($flag)
    {
        if (!is_bool($flag)) {
            $this->params['stale'] = $flag;
        } elseif ($flag === true) {
            $this->params['stale'] = 'ok';
        } else {
            unset($this->params['stale']);
        }

        return $this;
    }
public function setStale ( $ flag ) { if ( ! is_bool ( $ flag ) ) { $ this -> params [ 'stale' ] = $ flag ; } elseif ( $ flag === true ) { $ this -> params [ 'stale' ] = 'ok' ; } else { unset ( $ this -> params [ 'stale' ] ) ; } return $ this ; }
If stale=ok is set CouchDB will not refresh the view even if it is stalled.

@param bool $flag

@return Query
If stale = ok is set CouchDB will not refresh the view even if it is stalled .