Права пользователя считаются раз за объект — убрал N+1 на roles при проверке прав в шапке

This commit is contained in:
rsgrinko committed 2026-09-17 01:56:32 +03:00
1 parent 167ad1eb43
commit 4a57409eec
4 files changed
+53 -3

No files matched your search

+5
View File
@@ -107,6 +107,10 @@ final class Builder
if (!$this->pretend) {
$this->db->execute($sql, $params);
// Мог быть и DDL — не только сиды: hasTable() не должен помнить
// схему до этой строки
$this->db->forgetTableCache();
}
}
@@ -148,5 +152,6 @@ final class Builder
$this->log[] = $operation->sql();
$this->db->execute($operation->sql());
$this->db->forgetTableCache();
}
}