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:


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 = "". $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 our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Email Address:
Are you a bot?

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

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2229
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5653

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?


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:
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!