Hello,
I am developing a plugin for nopCommerce 3.1.
I use the ICacheManager to cache some models in my controller but the problem is that nothing is actually cached.
I tried to debug the CacheExtensions to see if something is added, and I see that my key and model are added to the cache collection.
The problem is that at the next request it seems that nothing is cached.
I am also sending a snippet of the code:
public ActionResult PublicInfo()
{
....
string cacheKey ="My-cache-key{0}-{1}";
var cachedModel = _cacheManagerr.Get(cacheKey,100, () =>
{
return new MySampleMode(){
Products = products;
}
....
}
}