I have a huge UD-Element (3.6MB as xml) it is an UDAutocomplete that needs over 10sek to be generated (which doesn’t need to happen often). So I like to cache it somehow.
The problem is every time I try to store it the dynamic bits are broken afterwards. Neither $Cache nor Export-Clixml seem to work.
Is there a correct way todo this? Thanks in advance.
$Cache is just an in-memory ConcurrentDictionary so it should be able to store any amount of data (for better or worse). Can you share some more code on what you are trying to do? Maybe it’s something else.
If you start the UDApp firstime calling the website leeds to a long wait because the autocomplete has to be build from scratch but the UDToast will work fine. Second time you call the page the autocomplete is cached so it is much much faster but the UDToast will not show.