WP Admin 非常慢 [英] WP Admin extremely slow

查看:46
本文介绍了WP Admin 非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理的站点(它是一个多站点)的 WP 后端需要大约 25 秒才能加载.

The WP back end of a site I'm working on (It's a multisite) takes about 25 seconds to load.

直到昨天一切正常,前端仍然运行良好.同一台服务器上的所有其他站点也运行得一样好,所以它一定是 WP 后端问题.

Everything was working fine until yesterday and the front end still works perfectly well. All other sites on the same server run just as well, so it MUST be a WP back end issue.

我不记得到底是什么变化导致它变得如此缓慢.我记得最近更新了 WP(到 3.4.2 版),在其中一个站点上添加了一些插件并更改了最大上传文件大小.

I don't remember exactly what change it was that made it so slow. I remember updating WP recently (to version 3.4.2), adding some plugins on one of the sites and changing the max upload file size.

我尝试禁用所有插件,将主题更改回默认值,将最大文件大小更改回,并添加 define('WP_MEMORY_LIMIT', '1024M');(和其他值)到 WP-config,但没有任何帮助.

I tried to disable all the plugins, changing the themes back to default, changing the max file size back, and adding define('WP_MEMORY_LIMIT', '1024M'); (and other values) to WP-config but none of it helped.

也尝试更新网络",但出现错误 - 无法连接到主机.

Also tried to 'Update network', but I got an error - couldn't connect to host.

有什么想法吗?

推荐答案

我联系了我们的网络管理员,我们解决了问题.

I got in touch with our network admin and we resolved the issue.

我会在这里复制他的回答.希望它可以帮助某人.

I will copy his answer here. Hope it helps someone.

Wordpress 是否使用自引用 URL"?我的意思是...wordpress 是否试图完全使用它自己的模板/cssURL 中的限定域名(例如 http://example.co.uk/someurl )

Does Wordpress use 'self-referential URLs' ? What I mean by this is... is wordpress trying to access it's own templates/css using fully qualified domain names in the URL (e.g. http://example.co.uk/someurl )

因为我们在防火墙上使用网络地址转换 (NAT)隐藏服务器的真实IP地址,它的副作用是如果服务器尝试访问它自己的 URL,它将尝试发送到我们防火墙外部接口的流量,这是DNS 解析为.

Because we use Network Address Translation (NAT) on our firewalls to hide the real IP address of the server, it has the side effect that if the server tries to access it's own URLs, it will try to send the traffic to the external interface on our firewall, which is where the DNS resolves to.

对此的修复非常简单 - 我们只需将站点 url 添加到/etc/hosts 文件,以便服务器知道使用它自己的 IP 地址而不是防火墙上的地址.

The fix for this is very simple - we just add the site url into the /etc/hosts file so that the server knows to use it's own IP address instead of the address on the firewall.

所以他将我们的地址添加到主机文件中,现在它可以完美运行.太棒了.

So he added our address to the hosts file and now it works perfectly. Awesome.

这篇关于WP Admin 非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆