-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refresh site data in background when cache expiration is hit (#35)
Previously, when cached site data expired, it would block the current request (and all other requests) on refreshing the site data (eg by downloading a new repository archive zip). Now it does that in the background. If the refresh fails, it clears the cache so that the problem is made user-visible on the next request (so that monitoring tools will detect the problem and the site won't continue silently serving stale data). This will significantly improve page load times because users won't have to wait for the site data to be fetched each 5 min.
- Loading branch information
Showing
1 changed file
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters