application/Espo/Core/DataManager.php
public function rebuild($entityList = null)
    {
        $this->populateConfigParameters();

        $result = $this->clearCache();

        $result &= $this->rebuildMetadata();

        $result &= $this->rebuildDatabase($entityList);

        $this->rebuildScheduledJobs();

        return $result;
    }
public function rebuild($entityList = null)
    {
        $this->populateConfigParameters();

        $result = $this->clearCache();

        $result &= $this->rebuildMetadata();

        $result &= $this->rebuildDatabase($entityList);

        $this->rebuildScheduledJobs();

        return $result;
    }
public function rebuild ( $ entityList = null ) { $ this -> populateConfigParameters ( ) ; $ result = $ this -> clearCache ( ) ; $ result &= $ this -> rebuildMetadata ( ) ; $ result &= $ this -> rebuildDatabase ( $ entityList ) ; $ this -> rebuildScheduledJobs ( ) ; return $ result ; }
Rebuild the system with metadata, database and cache clearing

@return bool
Rebuild the system with metadata database and cache clearing