admin管理员组文章数量:1434909
Running Wordpress 4.1 on a CentOS 6.5 instance through VirtualBox as a dev server. When logged in as admin on both ssl and non-ssl sites Wordpress curl requests are taking a long time to run (45+ seconds overall before page loads). This renders my dev site unusable, as you can imagine.
While browsing around I found many people complaining of this extremely slow curl issue and I've discovered that setting the WP_INSTALLING
constant to true speeds the site up 100%. I imagine it blocks all outgoing requests?
What are the consequences of setting this? I see that it breaks my front-end (admin side works well).
define('WP_INSTALLING', true);
Or, How can I just disable all outgoing requests? I profiled the page load and it appears that 65% of the hanging is due to curl requests. I just want to disable these external checks.
Running Wordpress 4.1 on a CentOS 6.5 instance through VirtualBox as a dev server. When logged in as admin on both ssl and non-ssl sites Wordpress curl requests are taking a long time to run (45+ seconds overall before page loads). This renders my dev site unusable, as you can imagine.
While browsing around I found many people complaining of this extremely slow curl issue and I've discovered that setting the WP_INSTALLING
constant to true speeds the site up 100%. I imagine it blocks all outgoing requests?
What are the consequences of setting this? I see that it breaks my front-end (admin side works well).
define('WP_INSTALLING', true);
Or, How can I just disable all outgoing requests? I profiled the page load and it appears that 65% of the hanging is due to curl requests. I just want to disable these external checks.
Share Improve this question asked Jan 13, 2015 at 17:37 adamgedneyadamgedney 212 bronze badges 3 |1 Answer
Reset to default 0I want to credit @wyck for his answer of setting:
define( 'WP_HTTP_BLOCK_EXTERNAL', true );
I also just wanted to add that this and a lot of nice other config options are nicely documented in the Codex.
本文标签: customizationAre there any security issues with setting the WPINSTALLING constant to true
版权声明:本文标题:customization - Are there any security issues with setting the WP_INSTALLING constant to true? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745618976a2666569.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
define('WP_HTTP_BLOCK_EXTERNAL', true);
– Wyck Commented Jan 13, 2015 at 17:58