Caching Overview
We cache flight prices to reduce the traffic volumes and the number of API calls to our partners. It also improves user experience with faster data retrieval directly contributing to a smoother, more responsive user experience. We have two separate caching, dayview cache and booking panel cache.
Dayview Cache
There are two ways on how we return quotes to the Skyscanner site for the traveller to view.
- We will retrieve quotes from our cache and return the quotes to the Skyscanner site for the traveller to view.
- If the last price cached is older than the configured cache time, we will request a live update and call your API for a fresh quote.
Our caching rules are based on the departure time and split into three different levels (This week, this month, and later). We are able to change the caching duration to accommodate your specifications.
Currently, our default cache setup is as follows:
- Searches that returned No Flights: 36 Hours
- For flights leaving:
- This Week: 4 Hours
- This Month: 24 Hours
- Later than that: 36 Hours
Booking Panel Cache
When the traveller goes into the booking panel, fresh offers are presented to them, sourced as follows:
- If the price used was cached in the last 10 minutes or less, we will use that price.
- If the price is older than 10 minutes, we make a new call to you.
- If the traveller were to stay in the booking panel for longer than 10 minutes, a new API call is done for all partners so we can provide current prices and help them make the best decision possible.
This is a universal cache and we are not able to make changes to it.
Comments
0 comments
Please sign in to leave a comment.