WordPress.org

Ready to get started?Download WordPress

Forums

Disable WP dashboard http requests (5 posts)

  1. John Peden
    Member
    Posted 2 years ago #

    Hi,

    I'm running 3 WordPress installations on a LAMP server that is locked down to anyone outside our network. The box itself cannot send or recieve HTTP requests beyond the network and as such, navigating the dashboard is very slow as I have to wait until the HTTP requests timeout and return an error message.

    Is it possible to decrease the timeout value to 0 or disable these requests until the sites are fully developed and ready for launch?

    As an example, turning gravatars off altogether has already saved at least 2 seconds on a page load.

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    I don't know about decreasing the timeout, but would it help if you set the domains it is requesting to the localhost IP address in the hosts file?

  3. John Peden
    Member
    Posted 2 years ago #

    1. Not sure exactly which domains are being requested. Would I be able to find out by using something like Firebug?
    2. Surely by setting these domains to localhost, they will just return null?
  4. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    Acutally on second thoughts, adding the following to your wp-config.php would probably be better as it will block external requests

    define('WP_HTTP_BLOCK_EXTERNAL', true);

    Assuming we're talking about http requests from core WordPress rather than anything from plugins which I don't think this would stop.

  5. John Peden
    Member
    Posted 2 years ago #

    This worked a treat! You sir, are an adel mensch!

Topic Closed

This topic has been closed to new replies.

About this Topic