所以你看到的时代是典型发展的一个例子。你启动你的服务器和 mysql 数据库,然后登录到后端并尝试添加一个简单的东西,比如菜单项。
显示的时间只是服务器开始响应的时间,而不是页面实际完成加载的时间。所以现在是时候,在代码中传递服务器,执行查询等。所有的 JS 文件和 CSS 都不是这个测量的一部分。
我可以继续前进。单击“新菜单项”并单击“保存”将花费同样长的时间。所以对于一个简单的事情,比如添加一个菜单项,用户花费大约一分钟看一个空白屏幕(假设用户熟记 joomla 并且没有错误点击,因此永远不必返回)。
缓存
所以我阅读了有关缓存的信息。如果您启用Page Caching
我将无法继续开发,因为我的更改似乎没有得到刷新,并且您在开发时确实需要此功能。View Caching
实际上大大加快了后端和前端的速度。但是你仍然需要在它被兑现之前缓慢地访问一次页面,并且你必须在现金存在的时间范围内再次访问它才能从中获利。所以对我来说,这意味着后端基本上总是很慢。除非我尝试在 15 分钟内添加 10 个菜单项。
顺便说一句,我在一个全新的笔记本上运行,这真的不应该是问题。
有什么我错过的吗?
这真的正常吗?
编辑
我可以将时间缩短到 2 秒左右。配置文件显示了很多红色,但有人有想法吗?图片是视图菜单管理器,主菜单菜单项。