Previously, OwnYourGram would check all users' Instagram feeds once an hour. I changed it to have four polling tiers, and the interval for the top tier is every 15 minutes now. This means people who post lots of photos will now see their photos on their site sooner, and because of the tiered approach, I won't be wasting resources on feeds that post infrequently.
The four tiers are:
- Every 15 minutes (on the 0, 15, 30 and 45 minute mark) - 11 users
- Every hour (5 minutes after the hour) - 12 users
- Every 6 hours (at 00:10, 06:10, 12:10, 18:10 UTC) - 11 users
- Once a day (at 01:10 UTC) - 38 users
Users are sorted into tiers based on the number of photos posted in the last 14 days. The more you post, the more often OwnYourGram checks your feed! If your Micropub endpoint returns an error, then you're bumped down a tier. If you're at the lowest tier and there's an error, then polling will be disabled completely until you log back in.
Thanks to snarfed for suggesting the tiered approach!