public static function getCacheKey($params, $content = null)
    {
        $key = SSViewer::config()->get('global_key');
        $viewer = new SSViewer_FromString($key);
        $globalKey = md5($viewer->process(ArrayData::create([])));
        $argsKey = md5(serialize($params)) . '#' . md5(serialize($content));

        return "{$globalKey}#{$argsKey}";
    }
public static function getCacheKey($params, $content = null)
    {
        $key = SSViewer::config()->get('global_key');
        $viewer = new SSViewer_FromString($key);
        $globalKey = md5($viewer->process(ArrayData::create([])));
        $argsKey = md5(serialize($params)) . '#' . md5(serialize($content));

        return "{$globalKey}#{$argsKey}";
    }
public static function getCacheKey ( $ params , $ content = null ) { $ key = SSViewer :: config ( ) -> get ( 'global_key' ) ; $ viewer = new SSViewer_FromString ( $ key ) ; $ globalKey = md5 ( $ viewer -> process ( ArrayData :: create ( [ ] ) ) ) ; $ argsKey = md5 ( serialize ( $ params ) ) . '#' . md5 ( serialize ( $ content ) ) ; return "{$globalKey}#{$argsKey}" ; }
Generates a cachekey with the given parameters

@param $params
@param $content
@return string
Generates a cachekey with the given parameters