public function getFromCache($ID)
    {
        /* Compute the path */
        $Database = $this->CacheFolder . "/" . $this->CacheDB;

        /* Lookup for the picture in the cache */
        $CacheInfo = $this->isInCache($ID, true, true);

        /* Not in the cache */
        if (!$CacheInfo) {
            return null;
        }

        /* Get the database extended information */
        $DBPos = $CacheInfo["DBPos"];
        $PicSize = $CacheInfo["PicSize"];

        /* Extract the picture from the solid cache file */
        $Handle = @fopen($Database, "r");
        fseek($Handle, $DBPos);
        $Picture = fread($Handle, $PicSize);
        fclose($Handle);

        /* Return back the raw picture data */
        return $Picture;
    }
public function getFromCache($ID)
    {
        /* Compute the path */
        $Database = $this->CacheFolder . "/" . $this->CacheDB;

        /* Lookup for the picture in the cache */
        $CacheInfo = $this->isInCache($ID, true, true);

        /* Not in the cache */
        if (!$CacheInfo) {
            return null;
        }

        /* Get the database extended information */
        $DBPos = $CacheInfo["DBPos"];
        $PicSize = $CacheInfo["PicSize"];

        /* Extract the picture from the solid cache file */
        $Handle = @fopen($Database, "r");
        fseek($Handle, $DBPos);
        $Picture = fread($Handle, $PicSize);
        fclose($Handle);

        /* Return back the raw picture data */
        return $Picture;
    }
public function getFromCache ( $ ID ) { /* Compute the path */ $ Database = $ this -> CacheFolder . "/" . $ this -> CacheDB ; /* Lookup for the picture in the cache */ $ CacheInfo = $ this -> isInCache ( $ ID , true , true ) ; /* Not in the cache */ if ( ! $ CacheInfo ) { return null ; } /* Get the database extended information */ $ DBPos = $ CacheInfo [ "DBPos" ] ; $ PicSize = $ CacheInfo [ "PicSize" ] ; /* Extract the picture from the solid cache file */ $ Handle = @ fopen ( $ Database , "r" ) ; fseek ( $ Handle , $ DBPos ) ; $ Picture = fread ( $ Handle , $ PicSize ) ; fclose ( $ Handle ) ; /* Return back the raw picture data */ return $ Picture ; }
Get file from cache
@param string $ID
@return string|null
Get file from cache