davidjrh / dnn.rediscachingprovider

This caching provider allows to use a Redis cache server or cluster within DNN Platform (formerly DotNetNuke)
MIT License
23 stars 16 forks source link

partially clearing the keys fix: #14 #62

Closed tvatavuk closed 1 year ago

tvatavuk commented 2 years ago

We are using dnn.rediscachingprovider for web farm. Have custom code that adds custom cache items with DataCache.SetCache(...). Had an issue because in some cases dnn.rediscachingprovider cleaned also these custom cache items from redis and that was unexpected. Updated dnn.rediscachingprovider code that is removing cache items to not remove all cache items from redis, but to behave similarly as DotNetNuke.Services.Cache.ClearCacheInternal method and remove a subset of cache items based on dnn prefix.