Elgg\Cache\SystemCache::loadAll PHP Method

loadAll() public method

Loads the system cache during engine boot
See also: elgg_reset_system_cache()
public loadAll ( )
    function loadAll()
    {
        if ($this->timer) {
            $this->timer->begin([__METHOD__]);
        }
        $this->config->set('system_cache_loaded', false);
        if (!_elgg_services()->views->configureFromCache($this)) {
            return;
        }
        $data = $this->load('view_types');
        if (!is_string($data)) {
            return;
        }
        $GLOBALS['_ELGG']->view_types = unserialize($data);
        // Note: We don't need view_overrides for operation. Inspector can pull this from the cache
        $this->config->set('system_cache_loaded', true);
        if ($this->timer) {
            $this->timer->end([__METHOD__]);
        }
    }