concrete/src/Cache/Cache.php
public function disable()
    {
        // save the current driver if not yet black hole so it can be restored on enable()
        if (!($this->pool->getDriver() instanceof BlackHole)) {
            $this->driver = $this->pool->getDriver();
        }
        $this->pool->setDriver(new BlackHole());
        $this->enabled = false;
    }
public function disable()
    {
        // save the current driver if not yet black hole so it can be restored on enable()
        if (!($this->pool->getDriver() instanceof BlackHole)) {
            $this->driver = $this->pool->getDriver();
        }
        $this->pool->setDriver(new BlackHole());
        $this->enabled = false;
    }
public function disable ( ) { // save the current driver if not yet black hole so it can be restored on enable() if ( ! ( $ this -> pool -> getDriver ( ) instanceof BlackHole ) ) { $ this -> driver = $ this -> pool -> getDriver ( ) ; } $ this -> pool -> setDriver ( new BlackHole ( ) ) ; $ this -> enabled = false ; }
Disables the cache.
Disables the cache .