diff --git a/framework/yii/redis/ActiveRecord.php b/framework/yii/redis/ActiveRecord.php index fb26818..2e4c1ad 100644 --- a/framework/yii/redis/ActiveRecord.php +++ b/framework/yii/redis/ActiveRecord.php @@ -155,6 +155,7 @@ class ActiveRecord extends \yii\db\ActiveRecord $attributeKeys[] = static::tableName() . ':a:' . $pk; } if (empty($attributeKeys)) { + $db->executeCommand('EXEC'); return 0; } $db->executeCommand('DEL', $attributeKeys);