For example:
(Using stock nopCommerce install with default data)
URL:/admin/Topic/Edit/1
The TopicService calls:
return _cacheManager.Get(key, () => _topicRepository.GetById(topicId));
The PerRequestCacheManager is called and I would expect it to have to query the database the first time and then cache it. Even on subsequent calls of the same URL though it is not returning a cached value. The code below seems to always be skipped as the key does not already exist in cache:
//item already is in cache, so return it
if (items[key] != null)
return (T)items[key];
What am I missing?