CakePHP 1.3:加快启用 ACL 的应用程序加载时间

发布于 2025-01-01 15:56:56 字数 439 浏览 2 评论 0原文

所有,

我应该采取什么最佳实践/方法来加速使用 CakePHP 开发的应用程序。我一直在通过检查我的 echo $this->element('sql_dump'); 并改进我的 $find 操作来进行大量测试?

  1. 我缓存了所有的 $this->element()
  2. 我正在努力将我的查找操作限制为仅返回我需要的内容
  3. 尽可能使用缩略图

我注意到的主要问题是 ACL 调用

  1. 例如,我的其中 1 个页面的加载时间约为 3334 毫秒,其中 3320 毫秒是由于我根据 sqldump 进行的 ACL 检查造成的。

我还能做些什么来改善这个具体问题以及其他一般问题。

谢谢,

All,

What is the best practice/approach I should take to speed up my application developed using CakePHP. I have been doing a bunch of testing by checking my echo $this->element('sql_dump'); and improving on my $find operations?

  1. I cache all my $this->element()
  2. I am working on limiting my find operations to only return what I need
  3. Using thumbnails where possible

The main problem I've noticed is the ACL calls

  1. For instance, 1 of my pages takes about 3334 ms to load and 3320 ms is due to my ACL checks according to sqldump.

What else can I do to improve this specific issue and anything else in general.

Thanks,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

标点 2025-01-08 15:56:56

缓存 ACL 检查。将它们读入内存,除非您知道它们发生了变化,否则不要查询它们。这确实是我能立即想到的唯一选择。

Cache the ACL checks. Read them into the memory and don't query them unless you know that they changed. That's really the only option I can think of off the top of my head.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文