Elgg\Debug\Inspector::getSimpleCache PHP Method

getSimpleCache() public method

Get simplecache information
public getSimpleCache ( ) : array
return array [views]
    public function getSimpleCache()
    {
        $simplecache = elgg_extract('simplecache', $this->getViewsData(), []);
        $locations = elgg_extract('locations', $this->getViewsData(), []);
        $tree = [];
        foreach ($simplecache as $view => $foo) {
            $tree[$view] = '';
        }
        // add all static views
        foreach ($locations as $viewtype) {
            foreach ($viewtype as $view => $location) {
                if (pathinfo($location, PATHINFO_EXTENSION) !== 'php') {
                    $tree[$view] = '';
                }
            }
        }
        ksort($tree);
        return $tree;
    }