Updated caching algorithm for products