We have a tridion DXA 2.1 .NET website that is using Output Caching and View Model caching. Is there a way to invalidate the Output Cache and View Model cache based on some dependencies like some publish action by content author or so?
For example, in one of our site (not on DXA), navigation cache is invalidated once content author publishes
sitemap.xml file. Here it is using standard dotnet file dependency. Is there something similar in DXA?