Nette\Caching\OutputHelper::end PHP Method

end() public method

Stops and saves the cache.
public end ( array $dependencies = NULL ) : void
$dependencies array
return void
    public function end(array $dependencies = NULL)
    {
        if ($this->cache === NULL) {
            throw new Nette\InvalidStateException('Output cache has already been saved.');
        }
        $this->cache->save($this->key, ob_get_flush(), (array) $dependencies + (array) $this->dependencies);
        $this->cache = NULL;
    }
OutputHelper