Skip to content

[2.1] Bots - reduce permissions queries#9124

Open
sbulen wants to merge 1 commit intoSimpleMachines:release-2.1from
sbulen:21_bot_guest_mod
Open

[2.1] Bots - reduce permissions queries#9124
sbulen wants to merge 1 commit intoSimpleMachines:release-2.1from
sbulen:21_bot_guest_mod

Conversation

@sbulen
Copy link
Contributor

@sbulen sbulen commented Feb 25, 2026

This PR aims to minimize unnecessary I/O by not doing moderator permissions lookups for guests and bots, who we already know will not have any moderator or admin privileges... This can add a lot of unnecessary permissions queries during normal operation, but especially during bot attacks.

I've been running this code on my prod forum with no issues.

If this is approved, I can submit a 3.0 version.

For more discussion see:
https://www.simplemachines.org/community/index.php?topic=592442.0

Feedback welcome.

Signed-off-by: Shawn Bulen <bulens@pacbell.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant