欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

tp框架内网访问很快,外网很慢

程序员文章站 2024-01-25 11:59:04
...
thinkphp tp框架内网访问很快,外网很慢
APP_DEBUG=>false
DB_FIELD_CACHE=>true
HTML_CACHE_ON=>true.

关闭调试模式和开启换成了,访问网页时还是很慢,要5-6S才能打开(非空间速度慢)
http://hf711.com/crm_new/index.php

请大家指教

回复讨论(解决方案)

up up up

有没有删除_runtime目录缓存呀

查查网页中有没有js的警告错误什么的,用chrome开发者工具那个测试看看网站耗的时间都用在什么上面了。

有删除_runtime目录缓存。 页面也没有显示错误或警告。
火狐提示错误:"NetworkError: 500 Internal Server Error - http://hf711.com/crm_new/index.php?a=index&m=Public"

请问该怎么解决

服务器错误,把错误打开。
应该是代码有误了。

服务器错误,把错误打开。
应该是代码有误了。
谢谢回复。 代码应该是没问题的 TPL网页模板中只有一个h1标签而已。

index.php
define('APP_NAME', 'tp');
define('APP_PATH', './tp/');
define('APP_DEBUG', 'TRUE');
//define('NO_CACHE_RUNTIME',True);
require( "resources/tp/ThinkPHP.php");
?>

>tracert hf711.com

Tracing route to hf711.com [121.12.168.117]
over a maximum of 30 hops:

1 6 ms 21 ms 6 ms 114.106.240.1
2 5 ms 5 ms 5 ms 61.191.14.17
3 12 ms 11 ms 12 ms 202.102.218.25
4 32 ms 32 ms 32 ms 202.97.55.29
5 46 ms 46 ms 46 ms 113.105.160.46
6 34 ms 35 ms 35 ms 183.60.128.178
7 46 ms 37 ms 36 ms 113.105.160.174
8 * * * Request timed out. 请求超时,查一下原因
9 48 ms 46 ms 46 ms 121.12.168.117

113.105.160.174 广东省东莞市电信
121.12.168.117 广东省东莞市电信IDC机房

如果不是租用他的空间,那就是使用了“动态域名绑定”
如果是前者,可向其或其上级投诉