Skip to content

[3.0] Bots - reduce topic view updates#9150

Merged
jdarwood007 merged 1 commit intoSimpleMachines:release-3.0from
sbulen:30_bot_views
Mar 14, 2026
Merged

[3.0] Bots - reduce topic view updates#9150
jdarwood007 merged 1 commit intoSimpleMachines:release-3.0from
sbulen:30_bot_views

Conversation

@sbulen
Copy link
Contributor

@sbulen sbulen commented Mar 13, 2026

3.0 version of #9128 - More discussion may be found there.

This PR aims to minimize I/O during a bot attack by eliminating the tracking of guest & bot views in the smf_topics record. Note this counter is incremented under all circumstances, and causes yet another I/O during bot attacks.

An option is added, allowing the user to turn this behavior on or off. Users may wish to disable this only during high-CPU bot attacks.

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

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

Signed-off-by: Shawn Bulen <bulens@pacbell.net>
@sbulen
Copy link
Contributor Author

sbulen commented Mar 13, 2026

Note I'm having a hard time testing in 3.0 due to #9146 and #9147.

I'm tied up right now... Will hopefully be able to direct my attention there next week. If anybody else has a theory, please dive in!

@jdarwood007 jdarwood007 added this to the 3.0 Alpha 5 milestone Mar 14, 2026
@jdarwood007 jdarwood007 merged commit fe39fe6 into SimpleMachines:release-3.0 Mar 14, 2026
8 checks passed
@sbulen sbulen deleted the 30_bot_views branch March 15, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants