Caching cloud function response

There isn’t any hook for functions. So I see two options:

  • In the beginning of the functions, verify the cache, and, at the end, save in the cache. You can try to override the default definition of the Parse.Cloud.define() function to write this logic a single time.
  • Use some service like Cloudflare or CloudFront and setup it to do the cache for you.
1 Like