Multi tenancy Caching - Business Data

Topics: General
Jun 28, 2013 at 7:50 AM
I need to cache business data, i.e the results of webservices i understand after reading http://docs.orchardproject.net/Documentation/Caching that this would be the module I'm after https://bitbucket.org/sebastienros/orchard.caching

The twist is most of my data but not all is common across all tenants, it would therefore make sense that it only be cached once.

What would be the best way to achieve this?
Developer
Jun 28, 2013 at 5:27 PM
Edited Jun 28, 2013 at 5:27 PM
Yes. For business data caching you should use Orchard.Caching, It's exactly the reason why it was created.
Best way would be to replace the DefaultCacheService with your own implementation (it's dead simple to implement one) and remove the automatic key prefixing to have full control over the final key (currently, each key is prefixed with tenant name).