Optimising and maintaining your WordPress site database

Procédure

Why and how to optimise a site's database

When you maintain an active WordPress site, it's not unusual to find that over time it becomes slower and slower, heavier and heavier, and that the slightest action ends up taking several minutes where it used to take just a few seconds. This is a sign that your database needs a major facelift to restore its former performance. There are several ways you can give your site a second lease of life and keep it in shape:

  • Delete the comments/pages/articles/... that remain in your database even after they have been removed from your site.
  • Optimise your site's tables so that they are quicker to access
  • Delete unnecessary data that is taking up space in your database, such as page revisions, drafts, expired transients (the cache, if you prefer), ...

You can apply one or all of the above actions to speed up the operation of your site.

The problem could also come from your extensions: a large number of extensions, especially if they are heavy or poorly optimised, can greatly slow down a WordPress site, especially the administrative part of your site (wp-admin).

It is possible to clean up your site by hand, but we advise you to use specialist extensions if you're not sure what you're doing, especially when it comes to cleaning up a database, as the slightest mistake could cause you to lose your data.

Optimising your site with LWS Optimize

The LWS Optimize extension, developed by LWS and specialising in WordPress site optimisation, offers weekly database maintenance, offering to clean up various elements of the database that are taking up space and slowing down your site unnecessarily.

To configure and activate this option, go to the extension settings and then to the 'Database' tab.

Optimising and maintaining your WordPress site databaseOptimising and maintaining your WordPress site database

Then click on 'Manage' under the 'Scheduled Database Maintenance' option; this will open a window allowing you to tick the actions you want to be carried out every week.

Optimising and maintaining your WordPress site database

Once you have made your choice, click on "Save" to save the changes.

Optimising and maintaining your WordPress site database

Next, activate the option to activate the WordPress Cron, which will be repeated every week.

Optimising and maintaining your WordPress site database


This option will clean up a large part of your site, but if you want to take optimisation a step further, you can install and activate the LWS Cleaner extension, also developed by LWS, by activating the "LWS Cleaner Plugin" option and then clicking on the "Manage" button. You will then be redirected to the LWS Cleaner settings page (Doc: https://help.lws-hosting.com/en/how-to-clean-wordpress-site-with-lws-cleaner

Optimising and maintaining your WordPress site database

If the extension is not installed or activated, click on the button to activate it:

Optimising and maintaining your WordPress site database

Conclusion

You now know how to :

  • Identify the signs of a database in need of optimisation
  • Remove superfluous content from your site to lighten the workload on your database
  • Optimise database tables for faster data access
  • Assess the impact of extensions on your site's performance and act accordingly
  • Use specialised extensions such as LWS Optimize for regular and efficient maintenance
  • Activate additional functions with LWS Cleaner for advanced optimisation

By applying these methods, your WordPress site should regain its youthful speed and offer a better user experience. Don't forget that maintaining your site is an ongoing process 🔄. Take the time to follow these steps regularly to keep your site healthy 💪.

Thank you for reading this article 📖! If you have any questions or would like to share your database optimisation experience, please feel free to leave a comment. Your feedback is valuable to us and to the WordPress user community!

Rate this article :

This article was useful to you ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

2mn reading

How do I install the LWS affiliate plugin on WordPress?

3mn reading

How do I install the LWS SMS plugin for WooCommerce on WordPress?

0mn reading

How do I clean my WordPress site with LWS Cleaner?

0mn reading

How can LWS tools make managing WordPress easier?


Ask the LWS team and its community a question