0

所以你看到的时代是典型发展的一个例子。你启动你的服务器和 mysql 数据库,然后登录到后端并尝试添加一个简单的东西,比如菜单项。

显示的时间只是服务器开始响应的时间,而不是页面实际完成加载的时间。所以现在是时候,在代码中传递服务器,执行查询等。所有的 JS 文件和 CSS 都不是这个测量的一部分。

只需打开登录页面,6.5秒

登录到主管理员页面后需要超过 5.5 秒

进入菜单管理器,超过 6 秒

选择主菜单,5.6 秒

我可以继续前进。单击“新菜单项”并单击“保存”将花费同样长的时间。所以对于一个简单的事情,比如添加一个菜单项,用户花费大约一分钟看一个空白屏幕(假设用户熟记 joomla 并且没有错误点击,因此永远不必返回)。

缓存

所以我阅读了有关缓存的信息。如果您启用Page Caching我将无法继续开发,因为我的更改似乎没有得到刷新,并且您在开发时确实需要此功能。View Caching实际上大大加快了后端和前端的速度。但是你仍然需要在它被兑现之前缓慢地访问一次页面,并且你必须在现金存在的时间范围内再次访问它才能从中获利。所以对我来说,这意味着后端基本上总是很慢。除非我尝试在 15 分钟内添加 10 个菜单项。

顺便说一句,我在一个全新的笔记本上运行,这真的不应该是问题。

有什么我错过的吗?

这真的正常吗?

编辑

我可以将时间缩短到 2 秒左右。配置文件显示了很多红色,但有人有想法吗?图片是视图菜单管理器,主菜单菜单项。

joomla 3.2 的配置文件时间

4

3 回答 3

2

我的时间都低于 2 秒,通常在我的开发服务器(在由 Win7、i7 / 6Gb RAM / SSD 磁盘托管的 virtualbox 中运行 CentOS 6 的 VM)和我的生产服务器(至强双 2GHz / 4Gb / 10000 rpm SATA 磁盘)。

为您的站点启用调试,并在页面底部查看每个模块/组件/事件运行所需的时间,这将可以确定它是否是一个单独的扩展程序/Joomla 一直在吃东西,或者它是只是你的机器。

于 2013-12-06T14:57:19.473 回答
1

I don't have a particularly good local machine (just a cheap W8 and using EasyPHP) and my times are all much faster than wither yours or those other people are reporting. One of the things you can do is turn on debug and look at the profiling data. When I load the admin login page even with debug on I can see it's onAfterDispatch which is the slowest part of the process. A lot of times upgrading MySQL will give massive speed improvements.

于 2013-12-06T14:10:24.643 回答
0

When working on a localhost, the loading time usually depend on the PC performance. I work a hellish amount of time using wampserver (localhost) at work and on my computer at home.

When installing a fresh copy of Joomla 3.2 on Wamp at home, the step to create the database and insert the default content takes around 7-9 seconds, where as at work, it literally takes under 2 seconds. The reason? Because my work computer performance is much better than my personal computer.

It's the same concept for loading pages in the backend.

Hope this bit of info helped you.

于 2013-12-06T09:39:59.707 回答