How to solve the problem that WordPress takes up too much resources and causes the host provider to suspend the account

888u

Last update at :2024-06-12,Edit by888u

Whether we are choosing a virtual host or a VPS host to build a website, have we ever encountered the host provider suspending the account because the website is overloaded and the CPU takes up resources? I believe many friends have encountered the same thing as Snail. Because in overseas hosts, there is generally no limit on the number of sites to build, so we will try our best to build as many sites as possible to spread the cost of building a site. There are even individual webmasters who use this kind of space to split up small spaces and sell them.

Most webmasters use the wordpress program to build their websites. Although WP is easy to use, its congenital defect of occupying resources has not been solved. This is why Snail mentioned earlier "Exploring how many WordPress programs can be run on 512M VPS" is a concern. If our WordPress website is optimized well, the number of sites can be increased. If it is not optimized well, even if we use a 1G memory solution VPS, we will not be able to place many websites.

Today, after one of my ixwebhosting hosting accounts was suspended, the official gave me a list of the resources occupied by each website. I have placed a total of 13 WP blog websites in the IX host with unlimited 15 independent IP plans, which can theoretically be placed. The official gave me a list of ways to solve this problem in the notification letter. There are 6 points in total. I have compiled them and shared them with you. We can refer to them and use them in our own WP site optimization.

The first point is to ensure that the plug-ins and themes we use are up to date.

Because when using WordPress themes and plug-ins, especially plug-ins, there will be new versions. The new version will take into account the security of the plug-in and the energy consumption of resources. We need to upgrade to the latest version. This can be done manually by prompting you directly in the background.

The second point is to limit the timing function of wp-cron.php.

In the official information provided by ixwebhosting, we can see that wp-cron.php takes up a lot of resources. This may be related to batch updates and scheduled releases of our site group. This is very resource intensive and we need to limit it in the wp-config.php file.

define(\\’DISABLE_WP_CRON\\’, true);

The third point is to limit automatic saving and copy data.

When we are in the editing or non-editing state, WP will automatically save drafts and add copies to the database by default. If you don’t believe it, go to the POST data table and see if there are many records, but our articles are not like this. many. That's what's added automatically, we need to limit automatic versions and limit automatic saving of drafts.

define (\\’WP_POST_REVISIONS\\’, 0);define(\\’AUTOSAVE_INTERVAL\\’, 600);

The fourth point is to limit spider crawling in the robots.txt file. The example file is as follows:

User-agent: *Crawl-delay: 10Allow: /wp-content/uploads/Disallow: /cgi-bin/Disallow: /wp-login.phpDisallow: /wp-login.php*Disallow: /wp-register .phpDisallow: /wp-register.php*Disallow: /xmlrpc.phpDisallow: /template.htmlDisallow: /wp-admin/Disallow: /wp-includes/Disallow: /wp-content/pluginsDisallow: /wp-content/themesDisallow: /page/Sitemap: https://www.laozuo.org/sitemap.xmlSitemap: https://www.laozuo.org/sitemap.xml.gz

The fifth point is that it is prohibited to use plug-ins that occupy excessive resources.

Some plug-ins that take up too much resources cannot be used, especially in websites where we are building a group of sites to save resources and reduce costs. This is especially important to pay attention to. If it is other sites, you can consider it. All in One SEO, Broken Link Checker, Yet Another Related Posts Plugin, NextGen Gallery plug-ins cannot be used, as well as some random article plug-ins.

The sixth point is to delete unnecessary plug-ins.

We need to update the plug-ins in use to the latest version, ensure that the best version is running, and delete the plug-ins that are no longer in use. Don't think that if you don't use it, it won't take up resources. It will also take up resources. For database optimization, we can use Optimize Db and WP super cache automatic caching plug-ins.

In short, the above 6 points are basically a complete tutorial and can solve the problem of wordpress taking up too much resources. We need to pay attention to this problem. Don't wait for your account to be blocked before trying to solve the problem, because some hosting providers will not restore it after being suspended more than a few times, and they will not refund.

Recommended site searches: Mainland China bgp cloud host, European server, expired registered domain name Ministry of Industry and Information Technology domain name registration, domain name registration query, registration-free domain name, Zhengzhou virtual host, Hong Kong vps host, 100m free space server hosting,

How to solve the problem that WordPress takes up too much resources and causes the host provider to suspend the account

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码