# Disabled plugins still causing performance impact

**URL:** https://meta.discourse.org/t/disabled-plugins-still-causing-performance-impact/386419
**Category:** Bug
**Tags:** pr-welcome
**Created:** [October 22, 2025, 10:00am UTC](https://meta.discourse.org/t/disabled-plugins-still-causing-performance-impact/386419 "2025-10-22T10:00:15Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 22, 2025, 10:00am UTC](https://meta.discourse.org/t/disabled-plugins-still-causing-performance-impact/386419/1 "2025-10-22T10:00:15Z")

</div>

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](https://github.com/discourse/discourse/blob/main/plugins/discourse-topic-voting/plugin.rb#L48-L78) and the [search filter and search order](https://github.com/discourse/discourse/blob/main/plugins/discourse-topic-voting/plugin.rb#L105-L116) 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.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [October 23, 2025, 1:44am UTC](https://meta.discourse.org/t/disabled-plugins-still-causing-performance-impact/386419/2 "2025-10-23T01:44:04Z")

</div>

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 🙂

---

<div class="post-metadata">

### Author: ![loic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/loic/32/105621_2.png) [@loic](https://meta.discourse.org/u/loic)
#### Post date: [October 29, 2025, 11:55am UTC](https://meta.discourse.org/t/disabled-plugins-still-causing-performance-impact/386419/4 "2025-10-29T11:55:35Z")

</div>

I just finished a PR making most of the `register_*` calls behave like `add_to_serializer`:

[https://github.com/discourse/discourse/pull/35630](https://github.com/discourse/discourse/pull/35630)

---

<div class="post-metadata">

### Author: ![loic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/loic/32/105621_2.png) [@loic](https://meta.discourse.org/u/loic)
#### Post date: [October 30, 2025, 9:07am UTC](https://meta.discourse.org/t/disabled-plugins-still-causing-performance-impact/386419/5 "2025-10-30T09:07:12Z")

</div>

The PR has just been merged, it should be available in `latest` shortly 🙂

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 30, 2025, 9:27am UTC](https://meta.discourse.org/t/disabled-plugins-still-causing-performance-impact/386419/7 "2025-10-30T09:27:54Z")

</div>

Thanks, that is fantastic 😍  
Would a backport to stable be a possibility for this fix ?

---

<div class="post-metadata">

### Author: ![loic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/loic/32/105621_2.png) [@loic](https://meta.discourse.org/u/loic)
#### Post date: [October 30, 2025, 10:04am UTC](https://meta.discourse.org/t/disabled-plugins-still-causing-performance-impact/386419/8 "2025-10-30T10:04:58Z")

</div>

Sure, I just created a PR:

[https://github.com/discourse/discourse/pull/35703](https://github.com/discourse/discourse/pull/35703)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 27, 2026, 11:44pm UTC](https://meta.discourse.org/t/disabled-plugins-still-causing-performance-impact/386419/9 "2026-01-27T23:44:35Z")

</div>


