Clear full website cache on new build in asp.net core 3.1 MVC? #24509
Unanswered
sunnylubana1
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a website https://iamebook.com/ which is created in ASP.net core 3.1 using c#. This website contains ebooks. The most of content is static so I use cache in my website. I used response cache like [ResponseCache(Duration = (7 * 24 * 60 * 60))] and memcache like MemoryCache. all working perfectly fine. As most of the part is static so I can cache things for long time.
But I have a problem. As I host my website on a shared window server. Where they provide me Plesk for manage my website. In plesk there is no option to reset my website or do IIS restart to my website. This arises the problem, When I publish my new build to server. It retains all cache. So my changes on views are not reflect immediately. I need to know is there any way to remove or clear all cache while new build uploaded. Or Any get hit which do all clear process.
Please help me ASAP. Thanks in advance. Any other idea related to this are welcome.
Beta Was this translation helpful? Give feedback.
All reactions