Add debug when storing in the cache