检查 Sharepoint 中是否启用了 BlobCaching(无需查看 web.config)
有谁知道对象模型中的某个位置是否有一个布尔值,可以让我检查是否启用了 blobcaching?我只是无法找到它,通过智能感知查找 SPContext 和其他一些地方。 Google 在 web.config 之外没有发现任何内容。我希望在 SPContext.Current.Site.WebApplication 下找到一些东西,但什么也没有。
我总是可以创建自己的静态属性,以编程方式查看 web.config 来找出答案,但如果这样的属性已经存在于我不想查看的地方,我宁愿不重新发明轮子。
谢谢。
Does anyone know if there is a boolean value somewhere in the object model that allows me to check if blobcaching is enabled or not? I've just been unable to locate it, looking through intellisense for SPContext and a few other places. Google turned up nothing outside of the web.config. I was hoping to find something under SPContext.Current.Site.WebApplication, but nothing.
I can always create my own static property that programmatically looks into the web.config to find out, but would rather not reinvent the wheel if such a property already exists somewhere I didn't think to look.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有可用于检查其是否启用或禁用的属性(除了查看 web.config 之外)。所以你必须通读你的 web.config。不过,有一些文章涉及如何重置/清除 blob 缓存:
示例 1
there are no properties available to check if its enabled or disabled (apart from looking in the web.config). So you will have to read through your web.config. There are however some articles concerning how to reset/clear the blob cache:
example 1