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:
customindexprovider
gets invokeddefaultprocessingengine.execute
. createiindexingtaskmanager.createupdateindextask
task whenever there need update index.- i found
customindexprovider
getting created every task, though inheritingisingletondependency
.
one thing cause behavior if cachekey value different on each call code.