Why can't we modify data from loadData?

Can we document why executeInitialRequestDataModifications() is important to use and why you shouldn’t just run a modification that logged that the user requested the page in loadData()?

Title explanation What's the problem with this title?

I don’t know where to write this, but caching is enabled everywhere in an EWF web app except in the specific places designated for data modification. So by modifying data elsewhere you’d risk making parts of the cache stale.

Also, loadData can often run multiple times per request, and you probably only want to do your modification once.

1 Like