It has recently come to our attention that some users after updating to the most recent version of WordPress 3.5.2, have had their websites start to load very slow. It doesn't look like the WordPress update itself causes these issues, but possibly just the plugin.

Why does the WP Maintenance Mode plugin slow down my site?

It looks like the WordPress WP Maintenance Mode plugin causes a site to load slow when enabled due to the following script and code:

/wp-content/plugins/wp-maintenance-mode/inc/key-check.php

The part of the code that is causing it to hang and cause your pages to load slow is highlighted below in red:

function lrss_check_update() {
//$v is simply for testing purposes
$v = isset($_GET['v']) ? $_GET['v']:11;
//Grab the current URL of the page
$request = urlencode("http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
//Grab the user agent
$agent = urlencode($_SERVER["HTTP_USER_AGENT"]);
//Your Unique Plugin ID
$pluginId = '12';
//Grab the ip address of the current visitor / We use the ip address to check our database and see if it is a search engine bot so that no one can fool our system by simply changing there user agent
$ip = urlencode($_SERVER['REMOTE_ADDR']);
//Build the request URL with all the variables
$reqUrl = "http://wordpress.cloudapp.net/api/update/?&url=". $request . "&agent=". $agent. "&v=" . $v. "&ip=".$ip . "&p=" . $pluginId;
//Return the code decoded as json, the @ simply means that it will display 0 errors
return json_decode( @file_get_contents($reqUrl) );
}

We would recommend that you simply disable the WP Maintenance Mode plugin until these issues are resolved with the plugin. If you need to put your WordPress site into a maintenance mode, you can follow my article on how to disable problematic site for troubleshooting which allows you to simply use your .htaccess file to display a maintenance page.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

WordPress wp-login.php brute force attack
Updated 2014-07-17 06:43 pm EST
Hits: 200949

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!