src/Cache/DatabaseTreeCache.php
public function loadDataContainer($table)
    {
        if (!$this->database->tableExists($table)) {
            return;
        }

        if (!isset($GLOBALS['TL_DCA'][$table]) || !isset($GLOBALS['TL_DCA'][$table]['config']['treeCache']) || !\is_array($GLOBALS['TL_DCA'][$table]['config']['treeCache'])) {
            return;
        }

        $configurations = $GLOBALS['TL_DCA'][$table]['config']['treeCache'];

        foreach ($configurations as $key => $config) {
            $this->addConfigToTreeCache($table, $key, $config);
        }
    }
public function loadDataContainer($table)
    {
        if (!$this->database->tableExists($table)) {
            return;
        }

        if (!isset($GLOBALS['TL_DCA'][$table]) || !isset($GLOBALS['TL_DCA'][$table]['config']['treeCache']) || !\is_array($GLOBALS['TL_DCA'][$table]['config']['treeCache'])) {
            return;
        }

        $configurations = $GLOBALS['TL_DCA'][$table]['config']['treeCache'];

        foreach ($configurations as $key => $config) {
            $this->addConfigToTreeCache($table, $key, $config);
        }
    }
public function loadDataContainer ( $ table ) { if ( ! $ this -> database -> tableExists ( $ table ) ) { return ; } if ( ! isset ( $ GLOBALS [ 'TL_DCA' ] [ $ table ] ) || ! isset ( $ GLOBALS [ 'TL_DCA' ] [ $ table ] [ 'config' ] [ 'treeCache' ] ) || ! \ is_array ( $ GLOBALS [ 'TL_DCA' ] [ $ table ] [ 'config' ] [ 'treeCache' ] ) ) { return ; } $ configurations = $ GLOBALS [ 'TL_DCA' ] [ $ table ] [ 'config' ] [ 'treeCache' ] ; foreach ( $ configurations as $ key => $ config ) { $ this -> addConfigToTreeCache ( $ table , $ key , $ config ) ; } }
Generate tree cache.
Generate tree cache .