本地缓慢的PHP项目,使用CI和Xamp

时间:2022-07-25 23:55:40

I have one project on my local. Its in CodeIgniter. Problem is it is taking too much to load. Other projects on same machine and same server runs way much faster. I have same file (CI's default welcome file) on the both project. I have cleared all the autoload's, but still no success.

我当地有一个项目。它在CodeIgniter中。问题是加载太多了。同一台机器和同一台服务器上的其他项目运行速度更快。我在这两个项目上都有相同的文件(CI的默认欢迎文件)。我已经清除了所有的自动装载,但仍然没有成功。

I copied this project to another system and checked and it takes same amount of time their as well.

我将这个项目复制到另一个系统并进行检查,它们也需要相同的时间。

Please help me. Below is the time that i see.

请帮我。以下是我看到的时间。

Loading Time: Base Classes :- 8.0453 Controller Execution Time ( Welcome / Index ) :- 14.2312 Total Execution Time :- 22.2766

加载时间:基本类: - 8.0453控制器执行时间(欢迎/索引): - 14.2312总执行时间: - 22.2766

Thanks,

1 个解决方案

#1


Check your queries in the model and loops on the welcome controller function index() and also in view. maybe they are taking to much time to execute

检查模型中的查询,并在欢迎控制器函数索引()和视图中循环。也许他们花了很多时间来执行

#1


Check your queries in the model and loops on the welcome controller function index() and also in view. maybe they are taking to much time to execute

检查模型中的查询,并在欢迎控制器函数索引()和视图中循环。也许他们花了很多时间来执行