Home / Questions / What is the cacheAddMethod() used for in the context of display methods?
Explanatory Question

What is the cacheAddMethod() used for in the context of display methods?

👁 68 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Answer: The cacheAddMethod() is used to instruct the system's caching mechanism to load the method's return values into the cache for the records visible on the screen, plus some subsequent records. This improves the performance by reducing the number of times the method needs to be executed.