What does Clear Cache actually do?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hello,

I'm using nopCommerce 3.80 with source in Visual Studio 2015.

Can anyone explain what the Administration Clear cache option actually does?

I started looking at this code in the Presentation/Nop.Web/Administration/Controllers/CommonController.ds ClearCache method:


var cacheManager = EngineContext.Current.ContainerManager.Resolve<ICacheManager>("nop_cache_static");
            cacheManager.Clear();


I can follow it up to the point of the ContainerManager, but after that I get lost in the interfaces, etc.

What does Clear cache clear?

Thanks,
Tony
7 years ago
Clear cache clears the cache! Haha... What else do you expect? :D

Some frequently accessed entity, such as settings, URL record and etc are stored in cache for performance reason. So when you clear cache, you force a rebuild of the cached items. :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.