Why a feed can be up to five minutes behind

Why does a journal I just published, or a bookmark I just changed, not show up in the feed right away?

A journal or publication feed reads from a server cache that is rebuilt every 300 seconds. If you just published a piece, added or removed a bookmark, or liked something, the feed can keep showing the old state for up to five minutes, and reloading the page during that window does not help, because the same cached page is served back to you.

The feed is cached for exactly five minutes

The list and feed responses for both journals and publications, /api/v2/blogs/ and /api/v2/publications/, are held in server cache for 300 seconds and sent to your browser marked Cache-Control: max-age=300. Every request that matches the same URL, query parameters and session gets the identical cached response until that window ends. Your profile's Journals tab and Publications tab call these same cached endpoints, so they are not a reliable way to check whether a new post has landed either.

This is staleness, not your account seeing someone else's page

The cache varies by your session cookie, so what gets served still depends on who you are signed in as. The five-minute delay is the same response being replayed back to you, not another member's data crossing into your view.

A reload inside the window changes nothing

Because the cached page is keyed to the exact request, refreshing, closing and reopening the tab, or navigating away and back all reproduce the same cached response until the 300 seconds are up and the next request rebuilds it. Switching a feed's sort order sends a different request, but if someone else already loaded that exact combination in the last five minutes, you get their cached copy too.

What actually shows the current state

  1. Open the journal or publication's own page directly, at its /journals/<slug>/ or /publications/<slug>/ address. That page is not cached, so a piece you just published, and its correct like or bookmark state, shows immediately.
  2. Check the Bookmarks page on your profile. It reads bookmarks live rather than through the cached feed, so an add or remove appears there right away even while the journals or publications feed is still showing the old list.
  3. If neither of those is where you need to be, wait out the five minutes. There is no action that forces the cache to rebuild sooner.

How the publications feed is ordered covers the same cache for publications feed sorting specifically. For what each of the five journal feeds contains, see The five journal feeds and what each one holds.

Related