From 69b36fc2c5835d854279b51ff795312f988218a6 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 5 Apr 2022 18:32:46 +0200 Subject: Don't inject Bruteforce capability info in the webui This capability do DB access and as far I know is not used by the webui. This remove one DB query for each page load. Signed-off-by: Carl Schwan --- .../IInitialStateExcludedCapability.php | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lib/public/Capabilities/IInitialStateExcludedCapability.php (limited to 'lib/public/Capabilities') diff --git a/lib/public/Capabilities/IInitialStateExcludedCapability.php b/lib/public/Capabilities/IInitialStateExcludedCapability.php new file mode 100644 index 00000000000..db1c42f7696 --- /dev/null +++ b/lib/public/Capabilities/IInitialStateExcludedCapability.php @@ -0,0 +1,34 @@ + + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ +namespace OCP\Capabilities; + +/** + * Indicate that a capability should not be injected in the initial state + * of the page as it might be expensive to query and not useful for the + * webui. + * + * @since 24.0.0 + */ +interface IInitialStateExcludedCapability { +} -- cgit v1.2.3