Prado\Caching\TDbCache::flush PHP Method

flush() public method

Be careful of performing this operation if the cache is shared by multiple applications.
public flush ( )
    public function flush()
    {
        if (!$this->_cacheInitialized) {
            $this->initializeCache();
        }
        try {
            $command = $this->getDbConnection()->createCommand("DELETE FROM {$this->_cacheTable}");
            $command->execute();
        } catch (\Exception $e) {
            try {
                $this->initializeCache(true);
                $command->execute();
                return true;
            } catch (\Exception $e) {
                return false;
            }
        }
        return true;
    }