Elgg\ViewsService::cacheConfiguration PHP Method

cacheConfiguration() public method

Cache the configuration
public cacheConfiguration ( SystemCache $cache ) : void
$cache Elgg\Cache\SystemCache The system cache
return void
    public function cacheConfiguration(SystemCache $cache)
    {
        $cache->save('view_locations', serialize(['version' => '2.0', 'locations' => $this->locations]));
        // this is saved just for the inspector and is not loaded in loadAll()
        $cache->save('view_overrides', serialize($this->overrides));
    }