Cache Information

Enhancing API Performance with On-Demand Caching

At PSRESTful, we leverage on-demand caching to significantly boost the performance of our APIs, particularly those related to Catalog creation. By caching frequently accessed data, we ensure faster response times and a more efficient user experience. This approach is based on the recommendations of the PromoStandards Best Practices Committee.

Why Caching Matters

Caching is crucial for optimizing API performance. By storing frequently accessed data in a cache, we reduce the load on our servers and speed up response times for our users. This is especially important for clients importing large catalogs from suppliers such as Ariel, HIT, or SanMar. With effective caching, the time required to import a whole catalog can be drastically reduced, enhancing productivity and efficiency.

Cache Timeout for PSRESTful Services

We use different cache timeouts for various services and methods to balance data freshness and performance. Here is a detailed list of our caching policies:

Cache Timeout for PSRESTful Services
Service Method PSRESTful Endpoint Cache Timeout
Product DatagetProductSellable/sellable-products/1 day
Product DatagetProduct/products/:product_id/1 week
Product DatagetProductCloseOut/products-closeout/1 day
Product DatagetProductDateModified/products-modified-since/1 day
Media ContentgetMediaContent/medias/:product_id/1 week
Media ContentgetMediaDateModified/media-modified-since/1 day
PPCgetAvailableLocations/available-locations/:product_id/1 week
PPCgetDecorationColors/decoration-colors/1 week
PPCgetFobPoints/fob-points/:product_id/1 week
PPCgetAvailableCharges/available-charges/:product_id/1 week
PPCgetConfigurationAndPricing/pricing-and-configuration/:product_id/1 week
INVgetFilterValues/filter-values/:product_id/1 day
INVgetInventoryLevels/inventory/:product_id/4 hours

The other services are currently transactional, not cached.

Tip: If you need to bypass the cache, add "Cache-Control": "no-cache" to your HTTP Headers.