开发者

How do I stop Sitecore caching my custom data provider?

开发者 https://www.devze.com 2023-04-02 04:28 出处:网络
I have a custom data provider pulling in data 开发者_StackOverflow中文版via a webservice. I have pretty much followed this example here: http://www.techphoria414.com/Blog/Black-Art-of-Sitecore-Data-P

I have a custom data provider pulling in data 开发者_StackOverflow中文版via a webservice.

I have pretty much followed this example here: http://www.techphoria414.com/Blog/Black-Art-of-Sitecore-Data-Providers.aspx

Sitecore seems to be caching my data provider though. For example, I load my application for the first time, and the data get pulled from the provider as I would expect. However, if i collapse the tree and reopen it again, I would expect by provider to be called again, but it is not.

I thought it might be stored in the prefecth cache or in a lucene index, but clearing those didn't cause a call back to my provider again.

How do I tell it to always get data from my data provider?


Turns out the issue was a bug in my own code. If you want to disable caching on your provider though, you can do:

this.CacheOptions.DisableAll = true;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号