RGJ
(Richard - Communiteq)
10월 22, 2025, 10:00오전
1
Since a lot of plugins have been bundled with core, we’ve been seeing some performance impact.
When investigating, it turned out that some plugins are still injecting certain queries, even when disabled .
An example is the topic voting plugin.
The topic filter and the search filter and search order are always injected and active.
The code should be fenced with SiteSetting.topic_voting_enabled. Or maybe calls like register_search_advanced_filter should behave more like add_to_serializer and check if the plugin is enabled.
14개의 좋아요
tgxworld
(Alan Tan)
10월 23, 2025, 1:44오전
2
Thank you for the report. I’ve tagged this pri-medium for now and someone from the team will look at it soon.
Also putting a pr-welcome on this
4개의 좋아요
loic
(Loïc Guitaut)
10월 29, 2025, 11:55오전
4
I just finished a PR making most of the `register_*` calls behave like add_to_serializer:
https://github.com/discourse/discourse/pull/35630
4개의 좋아요
loic
(Loïc Guitaut)
10월 30, 2025, 9:07오전
5
The PR has just been merged, it should be available in latest shortly
3개의 좋아요
RGJ
(Richard - Communiteq)
10월 30, 2025, 9:27오전
7
Thanks, that is fantastic
Would a backport to stable be a possibility for this fix ?
3개의 좋아요
loic
(Loïc Guitaut)
10월 30, 2025, 10:04오전
8
3개의 좋아요