src/Service/Cdn.php
public static function getCacheUrl(
        $sBucket,
        $sObject,
        $sExtension,
        $sCropMethod,
        $sOrientation,
        $iWidth,
        $iHeight
    ) {
        //  Is there a cached version of the file on disk we can serve up instead?
        //  @todo (Pablo - 2018-03-13) - This won't be reliable in multi-server environments unless the cache is shared
        $sCachePath = static::getCachePath(
            $sBucket,
            $sObject,
            $sExtension,
            $sCropMethod,
            $sOrientation,
            $iWidth,
            $iHeight
        );

        if (file_exists(static::CACHE_PATH . $sCachePath)) {
            return static::CACHE_URL . $sCachePath;
        }

        return null;
    }
public static function getCacheUrl(
        $sBucket,
        $sObject,
        $sExtension,
        $sCropMethod,
        $sOrientation,
        $iWidth,
        $iHeight
    ) {
        //  Is there a cached version of the file on disk we can serve up instead?
        //  @todo (Pablo - 2018-03-13) - This won't be reliable in multi-server environments unless the cache is shared
        $sCachePath = static::getCachePath(
            $sBucket,
            $sObject,
            $sExtension,
            $sCropMethod,
            $sOrientation,
            $iWidth,
            $iHeight
        );

        if (file_exists(static::CACHE_PATH . $sCachePath)) {
            return static::CACHE_URL . $sCachePath;
        }

        return null;
    }
public static function getCacheUrl ( $ sBucket , $ sObject , $ sExtension , $ sCropMethod , $ sOrientation , $ iWidth , $ iHeight ) { //  Is there a cached version of the file on disk we can serve up instead? //  @todo (Pablo - 2018-03-13) - This won't be reliable in multi-server environments unless the cache is shared $ sCachePath = static :: getCachePath ( $ sBucket , $ sObject , $ sExtension , $ sCropMethod , $ sOrientation , $ iWidth , $ iHeight ) ; if ( file_exists ( static :: CACHE_PATH . $ sCachePath ) ) { return static :: CACHE_URL . $ sCachePath ; } return null ; }
Checks the public cache for an image, and if it's there will return it's URL

@param string  $sBucket     The bucket slug
@param string  $sObject     The name on disk
@param string  $sExtension  The file extension
@param string  $sCropMethod The crop method
@param integer $iWidth      The width
@param integer $iHeight     The height

@return null|string
Checks the public cache for an image and if it s there will return it s URL