orchardcms - ICacheManager not working as intended inside ISingletonDependency implementation -


i have developed custom search provider customindexprovider implementing iindexprovider , suppressing lucene.services.luceneindexprovider. reason, cachemanager executes implementation inside acquirecontext method , not cache.

 var mappingsfound = this.m_cachemanager.get(cachekey, ctx =>             {                 ////logic goes here                 return true/false;             }); 

whats going wrong implementation?

am affected issue https://orchard.codeplex.com/discussions/448781?

fyi:

  1. customindexprovider gets invoked defaultprocessingengine.execute. create iindexingtaskmanager.createupdateindextask task whenever there need update index.
  2. i found customindexprovider getting created every task, though inheriting isingletondependency.

one thing cause behavior if cachekey value different on each call code.