Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Statuspage API - Caching for "Get a list of subscribers" endpoint

Dear Comunity,

I noticed that when I create a new subscriber using the statuspage API and then try to find it in the list of all subscribers (GET /pages/{page_id}/subscribers) it doesn't show up right away.

I haven't found out the exact time it takes until a newly created subscriber shows up in this list but it for sure takes longer than 5-10 minutes.

I know that I can use the "Get a subscriber" endpoint (GET /pages/{page_id}/subscribers/{subscriber_id}) to get a single subscriber, and this one works imediately after I create a new subscriber.

My Problem here is that my application only knows the email address of the subscriber, so I use the above mentioned "Get a list of subscribers" endpoint and add a query parameter like this: "?q=john.doe@work.com".

 

My Questions:

1. Does anyone know if atlassian uses caching for this endpoint?

2. If they use chaching, is there a way to disable it for this endpoint?

3. If there's no way to disable the caching, for how long does the caching last exactly?

 

Thanks a lot for your help!

2 answers

Hello Jesse,

The problem doesn't occur the first time I try to create a subscriber and then try to look for him in the list of all subscribers.

It occurs when I try to create a subscriber than has been unsubscribed before. This is why I thought it probably had something to do with caching.

These steps don't work:

1. create subscriber (works)

2. get list of subscribers and find our subscriber (works)

3. unsubscribe subscriber (works)

4. create new subscriber with same email as old subscriber (works)

5. get list of subscribers and find our new subscriber (doesn't work)

0 votes
Jesse Klein Atlassian Team Jan 04, 2022

Hello Lukas,

This is Jesse from the Statuspage support team. Thanks for your question around API caching and welcome to the community.

I find it a bit strange that you're experiencing delays in the API responses for changes. For the manage API, there is no caching going on. The only thing that is cached is the status API, which does not apply here.

I just ran some testing on my side and was able to get instantaneous results each time I ran the request. I even added the ?q=john.doe@work.com part of this to see if that had an effect and got the same results. I am curious why this would be happening for you. If you had any more details of your setup, I would love to understand more. If you have anything outside of a Free plan, also feel free to send us a support ticket. I hope you have a great day!

Regards,
Jesse

Hello, Jesse

I accidentally posted my reply as a reply to my post, not your response so feel free to check it out and thanks a lot for your help!

Lukas

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Statuspage

New feature: Slack notifications for Statuspage

We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...

2,388 views 6 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you