src/helpers/PropertiesHelper.php
public static function generateCacheKey($models, $postfix = 'properties')
    {
        $ids = ArrayHelper::getColumn($models, 'id', false);
        sort($ids);
        /** @var \yii\db\ActiveRecord $first */
        $first = reset($models);
        return $first::tableName() . ':' . implode(',', $ids) . "-$postfix";
    }
public static function generateCacheKey($models, $postfix = 'properties')
    {
        $ids = ArrayHelper::getColumn($models, 'id', false);
        sort($ids);
        /** @var \yii\db\ActiveRecord $first */
        $first = reset($models);
        return $first::tableName() . ':' . implode(',', $ids) . "-$postfix";
    }
public static function generateCacheKey ( $ models , $ postfix = 'properties' ) { $ ids = ArrayHelper :: getColumn ( $ models , 'id' , false ) ; sort ( $ ids ) ; /** @var \yii\db\ActiveRecord $first */ $ first = reset ( $ models ) ; return $ first :: tableName ( ) . ':' . implode ( ',' , $ ids ) . "-$postfix" ; }
Generates cache key based on models array, model table name and postfix

@param \yii\db\ActiveRecord[] $models
@param string $postfix

@return string
Generates cache key based on models array model table name and postfix