4

I have decided to use platform cache to retain the result of an expensive callout and processing. Doing so eliminated the callout time and shaved 500ms off of the apex time. Unfortunately my gains were partially eliminated by the visualforce time jumping from ~180ms to more than 600ms. Is this a bug or is there something I need to do to stop this behavior?

  • Not entirely surprising. You might get better performance by trying to cache the results in a custom setting instead. – Adrian Larson Jul 28 '16 at 17:25
  • No can do @AdrianLarson, it is a pretty large chunk of data and custom settings only allow 255 characters in a single field. – Bob Roberts Jul 28 '16 at 18:17
  • Well, the bright side is you saved 80ms. – Adrian Larson Jul 28 '16 at 18:24
  • Custom Metadata is another option, long text fields now supported; Winter 18 allows Apex to write to custom metadata – cropredy Nov 17 '17 at 6:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.