XBRL-Global.php
public function initializeCache()
	{
		if ( $this->cacheLocation === null )
		{
			$this->cacheLocation = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'xbrl_taxonomy_cache' . DIRECTORY_SEPARATOR;
		}

		$this->cacheLocation = rtrim( $this->cacheLocation, '/' ) . '/';

		// $this->log()->info( "    Taxonomy cache location: " . $this->cacheLocation );

		// The cache location must exist or be creatable
		if ( ! file_exists( $this->cacheLocation ) )
		{
			// Attempt to create the directory
			if ( mkdir( $this->cacheLocation ) === false )
			{
				$this->useCache = false;
				$this->log()->err( "Failed to create the XBRL taxonomy cache. Caching will be disabled." );
				return;
			}
		}
	}
public function initializeCache()
	{
		if ( $this->cacheLocation === null )
		{
			$this->cacheLocation = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'xbrl_taxonomy_cache' . DIRECTORY_SEPARATOR;
		}

		$this->cacheLocation = rtrim( $this->cacheLocation, '/' ) . '/';

		// $this->log()->info( "    Taxonomy cache location: " . $this->cacheLocation );

		// The cache location must exist or be creatable
		if ( ! file_exists( $this->cacheLocation ) )
		{
			// Attempt to create the directory
			if ( mkdir( $this->cacheLocation ) === false )
			{
				$this->useCache = false;
				$this->log()->err( "Failed to create the XBRL taxonomy cache. Caching will be disabled." );
				return;
			}
		}
	}
public function initializeCache ( ) { if ( $ this -> cacheLocation === null ) { $ this -> cacheLocation = sys_get_temp_dir ( ) . DIRECTORY_SEPARATOR . 'xbrl_taxonomy_cache' . DIRECTORY_SEPARATOR ; } $ this -> cacheLocation = rtrim ( $ this -> cacheLocation , '/' ) . '/' ; // $this->log()->info( "    Taxonomy cache location: " . $this->cacheLocation );
 // The cache location must exist or be creatable
 if ( ! file_exists ( $ this -> cacheLocation ) ) { // Attempt to create the directory
 if ( mkdir ( $ this -> cacheLocation ) === false ) { $ this -> useCache = false ; $ this -> log ( ) -> err ( "Failed to create the XBRL taxonomy cache. Caching will be disabled." ) ; return ; } } }
Initializes the cache.  Reads the cache if available or creates one.
If there are problems, such as the cache location not being writeable the cache is disabled.
@return void
Initializes the cache . Reads the cache if available or creates one . If there are problems such as the cache location not being writeable the cache is disabled .