# Caching Strategy

As previously mentioned, it is not advisable to cache all rates due to their sheer volume. However, some users may require a certain level of caching. The following recommendations are designed to guide you in developing your caching strategy.

# Rates

Caching rates can be divided into two levels: hotel-level and rate plan-level.

  • Hotel-Level Cache: This cache can be retrieved by including the LowestPriceOnly tag in your price search request. This enables you to access the lowest price for each hotel.
  • Rate Plan-Level Cache: This cache can be retrieved via the standard price search API. Please note that only available rates will be returned in the response. For example, if a rate plan for four nights is requested and the second night is unavailable, rates for the remaining three nights will not be returned. To cache all daily rates, please send individual day requests.

Due to the large number of rates, full caching is not recommended as it can generate substantial traffic on both sides and consume significant bandwidth. It could also potentially overload our servers. Therefore, we advise you to only build cache for your top or most popular hotels.