# Server scaling and load created by the plugin

**URL:** <https://meta.discourse.org/t/server-scaling-and-load-created-by-the-plugin/38821>\
**Category:** WordPress\
**Created:** [1 Febbraio 2016, 10:22am UTC](https://meta.discourse.org/t/server-scaling-and-load-created-by-the-plugin/38821 "2016-02-01T10:22:32Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2 Giugno 2017, 6:12pm UTC](https://meta.discourse.org/t/server-scaling-and-load-created-by-the-plugin/38821/24 "2017-06-02T18:12:01Z")

</div>

@steve\_pd I see something that’s probably causing the plugin to use a lot of resources on your site. Because syncing comment numbers with Discourse is very inefficient, I set the plugin to use a longer sync period (defaults to 1 day) for archive pages than it does for single posts. The problem is that this is only being applied to post archives, it’s not applied to pages. This means that pages (as opposed to posts) on your site that contain lists of posts that are displaying comment numbers are making many calls to Discourse.

To fix this:

- a filter can be added to the plugin’s `get_comments_number` function so that pages as well as posts can use the longer sync period

- a new, more efficient, function can used to get the comment numbers from Discourse

- an option can be added to the plugin to sync comment numbers with a webhook

The first two items can be added to the plugin right away. The last one probably won’t make it into the next update, but should be available soon.

---

_[View the full topic](https://meta.discourse.org/t/server-scaling-and-load-created-by-the-plugin/38821)._
