Excessively Frequent Query for Updates
-
Why does the update query run so frequently, every 5 or 6 seconds? I tend to leave the Simple History page open on sites with multiple admins and on which I am actively developing. In my WP Engine access logs, in one example, 1499 lines of a 3000 line log — HALF — are Simple History update queries. They show either 200 status if I am logged in or 403 status if the system has logged me out or the browser window no longer recognizes me as being logged in. In another instance, 1/6 of the entries were the Simple History updater. On SiteGround, where we can see 600 entries in our access log, almost all of the entries are Simple History.
There are several drawbacks to this frequency, and I can’t think of a reason why the query needs to be so frequent. 1. If we are working on a site, we can refresh Simple History if we want to see more current activity. 2. The query clutters the access logs that we are offered in our portals. 3. On a platform such as WP Engine, these are likely counting toward my monthly quota of billable “visits,” although I have not inquired to verify this.
Perhaps you can put something in the documentation about closing the Simple History window when not in use, or better yet, reduce the query frequency from once every 5 seconds to once every 5 minutes. When we are not logged in, it catches up fine when we do log in./wp-json/simple-history/v1/events/has-updates?page=1&per_page=100&_fields=&dates=lastdays%3A30&since_id=xxxxxx&_locale=user
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.