简体   繁体   中英

how to clear cache memory of a Blazor webapp by code

My Blazor server side app is using too much cache when the process run. i want at the end of the process make a clear of all the webapp cache on the IIS server. i need to code it at the end of the process by code but dont know how ....

这是 IIS 上的工作进程

we can see my app on the last row...

and here from the TaskManager we can see it...

在此处输入图片说明

Didnt find THE SOLUTION but here is what i understood and what i can share.

There is no ONE solution because its more about -> how you code and all good practrise you use ...

yuo can read this topic best pratcises very interesting.

Actually, in my case, i had to clean little more my code and write some .Dispose() fonction everywhere i can without breaking my app to clean my code and it work.

Ex: when i use a datatable and finish to work with it, i just had to write a datatable.Dispose();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM