public function getCacheDir()
    {
        if (is_null($this->dir)) {
            $this->dir = $this->config->cache->directory ?: sys_get_temp_dir().'/__PRAGMARX_COUNTRIES__/cache';

            if (! file_exists($this->dir)) {
                mkdir($this->dir, 0755, true);
            }
        }

        return $this->dir;
    }
public function getCacheDir()
    {
        if (is_null($this->dir)) {
            $this->dir = $this->config->cache->directory ?: sys_get_temp_dir().'/__PRAGMARX_COUNTRIES__/cache';

            if (! file_exists($this->dir)) {
                mkdir($this->dir, 0755, true);
            }
        }

        return $this->dir;
    }
public function getCacheDir ( ) { if ( is_null ( $ this -> dir ) ) { $ this -> dir = $ this -> config -> cache -> directory ? : sys_get_temp_dir ( ) . '/__PRAGMARX_COUNTRIES__/cache' ; if ( ! file_exists ( $ this -> dir ) ) { mkdir ( $ this -> dir , 0755 , true ) ; } } return $ this -> dir ; }
Get the cache directory.

@return mixed|string|static
Get the cache directory .