Elgg\Config::getCachePath PHP Метод

getCachePath() публичный Метод

public getCachePath ( )
    public function getCachePath()
    {
        $this->loadSettingsFile();
        if (!isset($this->config->cacheroot)) {
            $this->config->cacheroot = $this->getDataPath();
        }
        return $this->config->cacheroot;
    }

Usage Example

Пример #1
0
 /**
  * Returns the path to where views are simplecached.
  *
  * @return string
  */
 private function getPath()
 {
     $realpath = realpath($this->config->getCachePath());
     return rtrim($realpath, DIRECTORY_SEPARATOR) . "/views_simplecache";
 }