Can someone explain the basics of cache dependencies

lawrence whittemore asked on November 4, 2021 17:11

Can someone explain the basics of cache dependencies (on something like a repeater). Essentially, we'd like a repeater to refresh the cache if a new child document is added. Is default cache dependencies enough or do we need to manually set these for every repeater?

Recent Answers


Juraj Ondrus answered on November 5, 2021 06:38

Yes, you should be using the cache dependencies and the right cache keys. This way, when page A is modified, a key X is touched to clear the cache. So, if the key X is used in the repeater, which is listing page A, repeater will know that the cache item was changed since the key was touched and the repeater will load fresh data. You can also check this old article, the idea is still the same.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.