adding purchase logs and caching for cart gcm mapping