function getRoot() { $viewtype = elgg_get_viewtype(); if ($this->isEnabled()) { $lastcache = (int) $this->config->get('lastcache'); } else { $lastcache = 0; } return elgg_normalize_url("/cache/{$lastcache}/{$viewtype}/"); }