N98\Magento\Command\Cache\AbstractCacheCommand::banUseCache PHP Method

banUseCache() protected method

Ban cache usage before cleanup to get the latest values.
See also: https://github.com/netz98/n98-magerun/issues/483
protected banUseCache ( )
    protected function banUseCache()
    {
        if (!$this->_canUseBanCacheFunction()) {
            return;
        }
        $config = $this->getApplication()->getConfig();
        if (empty($config['init']['options'])) {
            $config['init']['options'] = array('global_ban_use_cache' => true);
            $this->getApplication()->setConfig($config);
        }
    }