This project is read-only.


Orchard.Caching DefaultCacheStorageProvider should use the newer MemoryCache


Closed Oct 17, 2014 at 6:32 PM by Piedone


Jetski5822 wrote Oct 13, 2014 at 11:58 PM

I didnt know this existed.... but yes we should!

Piedone wrote Oct 14, 2014 at 10:43 PM

Piedone wrote Oct 14, 2014 at 11:08 PM

Note: for effective memory management there should be a single MemoryCache instance, preferable through using MemoryCache.Default. See:

Also MemorCache has regions that aren't implemented. Instead we could use this for clearing all cache entries for specific tenants:

Jetski5822 wrote Oct 17, 2014 at 2:04 PM

Would Regions not be the Tenant?

Piedone wrote Oct 17, 2014 at 2:49 PM

It would, but despite the interface containing it, there is no existing implementation for regions.

Piedone wrote Oct 17, 2014 at 6:30 PM

Fixed in changeset d5f27f560c42820c095a8b75b01a14f36b9bd00b