Added maxItems support to cache updates