Drupal 中的控制访问模块降低了站点速度
每当我在 drupal 中启用内容访问模块时,它都会大大减慢网站速度,禁用它会使网站正确加载。是否有其他模块可以代替内容访问?
阿迪亚
Whenever i enable content access module in drupal it slows down the site a lot , disabling it makes the site load properly. Are there any other modules which could be instead of content access?
Aditya
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您询问可以使用哪些其他访问模块,您可以尝试 Nodeaccess
还有更多,请参阅 http://drupal.org/node/270000 中可能的模块列表
If you are asking what other access modules you can use, you might try Nodeaccess
There are many more as well, see a list of possible modules at http://drupal.org/node/270000
其他内容访问模块可能也会导致同样的速度下降。所有这些模块只是向 Drupal 添加访问规则,实际查找权限的部分位于 Drupal 核心中。
相反,我会尝试安装 devel.module 并打印执行的 sql 查询。然后,看看查询实际上很慢,尝试通过添加索引来优化它们。
也许这只发生在与另一个模块结合使用时,因为它执行蹩脚的查询。
Other content access modules might just was result in the same slowdown. All these modules just add access rules to Drupal, the part that actuall looks for the permission is in Drupal core.
Instead, what I would try to do is install devel.module and print the executed sql queries. Then, look queries are actually slow and try to optimize them by adding indexes.
Maybe this only happens in combination with another module because it executes crappy queries.