Thread:Andrewds1021/@comment-45117243-20201111034700/@comment-9605025-20210126211412

Okay. I figured out what is going on. In an attempt to reduce the number of requests, ViewNotificationsUsers and IgnoreNotifications both try to use the initial results from GetOnSiteNotifications. That way, they don't need to submit their own requests. However, the initial request made by GetOnSiteNotifications isn't controlled by the settings for ViewNotificationUsers or IgnoreNotifications; it is controlled by its own settings.

The settings you have for GetOnSiteNotifications simply sets  to   and and thus   is the server's choice. So when the initial run is done, it requests 5 pages of 10; or 50 notifications. Those 50 are then used by ViewNotificationsUsers because it is the initial results even though the limit is different than what ViewNotificationsUsers would have used if it had made its own request.

I suppose maybe I should add a setting to the two scripts so that users can force them to make separate requests and thus ensure that the settings for the individual scripts are respected on their individual initial runs.