4 ms·
The trouble with returning to the user before the cache has been purged is that they think it hasn’t worked, because they still see the old cached version.
by robinhouston 7y ago
The trouble with returning to the user before the cache has been purged is that they think it hasn’t worked, because they still see the old cached version.
- darkerside 7y agoI'm probably missing something but it sounds like cache invalidation happens on republishing, not on user request for content.
- robinhouston 7y agoYou’re absolutely right. But user requests for content are made directly to Cloudflare, not through the app, and it’s common for users to click directly through to the published content after republishing.
- darkerside 7y agoAh, that makes sense. You could store latest task status per content in your database and have a JavaScript component that polls and shows a message if cache invalidation is incomplete. But for how often Cloudflare goes down, it's probably not worth it.