CakePHP 1.3:加快启用 ACL 的应用程序加载时间
所有,
我应该采取什么最佳实践/方法来加速使用 CakePHP 开发的应用程序。我一直在通过检查我的 echo $this->element('sql_dump');
并改进我的 $find
操作来进行大量测试?
- 我缓存了所有的
$this->element()
- 我正在努力将我的查找操作限制为仅返回我需要的内容
- 尽可能使用缩略图
我注意到的主要问题是 ACL 调用
- 例如,我的其中 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?
- I cache all my
$this->element()
- I am working on limiting my find operations to only return what I need
- Using thumbnails where possible
The main problem I've noticed is the ACL calls
- 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
缓存 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.