lib/fal/metafilestorage.php
public function load($file,$ttl)
	{
		$cache = \Cache::instance();
		$cacheHash = $this->getCacheHash($file);
		if ($this->f3->get('CACHE') && $ttl && ($cached = $cache->exists(
			$cacheHash, $content)) && $cached + $ttl > microtime(TRUE)
		) {
			$this->data = $content;
		} elseif ($this->fs->exists($metaFile = $this->getMetaFilePath($file))) {
			$this->data = json_decode($this->fs->read($metaFile), true);
			if ($this->f3->get('CACHE') && $ttl)
				$cache->set($cacheHash, $this->data, $ttl);
		}
		return $this->data;
	}
public function load($file,$ttl)
	{
		$cache = \Cache::instance();
		$cacheHash = $this->getCacheHash($file);
		if ($this->f3->get('CACHE') && $ttl && ($cached = $cache->exists(
			$cacheHash, $content)) && $cached + $ttl > microtime(TRUE)
		) {
			$this->data = $content;
		} elseif ($this->fs->exists($metaFile = $this->getMetaFilePath($file))) {
			$this->data = json_decode($this->fs->read($metaFile), true);
			if ($this->f3->get('CACHE') && $ttl)
				$cache->set($cacheHash, $this->data, $ttl);
		}
		return $this->data;
	}
public function load ( $ file , $ ttl ) { $ cache = \ Cache :: instance ( ) ; $ cacheHash = $ this -> getCacheHash ( $ file ) ; if ( $ this -> f3 -> get ( 'CACHE' ) && $ ttl && ( $ cached = $ cache -> exists ( $ cacheHash , $ content ) ) && $ cached + $ ttl > microtime ( TRUE ) ) { $ this -> data = $ content ; } elseif ( $ this -> fs -> exists ( $ metaFile = $ this -> getMetaFilePath ( $ file ) ) ) { $ this -> data = json_decode ( $ this -> fs -> read ( $ metaFile ) , true ) ; if ( $ this -> f3 -> get ( 'CACHE' ) && $ ttl ) $ cache -> set ( $ cacheHash , $ this -> data , $ ttl ) ; } return $ this -> data ; }
return meta data
@param $file
@param $ttl
@return mixed
return meta data