wiki.techinc.nl/includes/Permissions
Bartosz Dziewoński 3aab5f1f3d RestrictionStore: Remove short-circuit mode when fetching cascading sources
Almost every call to isCascadeProtected() (which uses short-circuit
mode) is followed by a call to getCascadeProtectionSources() (which
doesn't), so this attempted optimization (skipping a loop that does
some very cheap operations) actually results in worse performance
in the common case (because the result of the database query can't
be cached in short-circuit mode, and we must query it again), and
it makes the code really annoying to read or modify.

Relevant code: https://codesearch.wmcloud.org/search/?q=getCascadeProtectionSources\(|isCascadeProtected\(&excludeFiles=RestrictionStore.php|HISTORY|tests%2F

Change-Id: Ib9eb6cab28492776d40a10cbfb28e9c1cec8c1d2
(cherry picked from commit f9180c4a36fb8874fc0211f05a1eebaceb67aa0c)
2025-04-09 13:25:44 +00:00
..
Hook Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
Authority.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
GrantsInfo.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
GrantsLocalization.php Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
GroupPermissionsLookup.php Remove meaningless @var documentation from constants 2024-10-09 09:33:12 +02:00
PermissionManager.php PermissionManager: Differentiate between cascading protection of file content and file pages 2025-03-24 13:31:34 +00:00
PermissionStatus.php Permissions: Fix typo 2024-09-08 10:41:18 +03:00
RateLimiter.php RateLimiter: Fix peek mode 2025-03-01 15:51:16 +00:00
RateLimitSubject.php
RestrictionStore.php RestrictionStore: Remove short-circuit mode when fetching cascading sources 2025-04-09 13:25:44 +00:00
SimpleAuthority.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
UltimateAuthority.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
UserAuthority.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00