How to improve mysql for wordpress in ubuntu 18?

I have had a lot of problems loading batch images in wordpress, I have read that there are ways to solve it by improving the database cache, how can I do it? I have seen other posts here but they talk about ubuntu 14 and they don’t relate it to wordpress

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hi @stiven8as,

Let’s review a few things before you go to your MySQL. The first big issues would be the size of the images, how big are they?

If you have images with a size of 4,5,6,7 MB it will take time until they load. Imagine having 6 images which are 5 MB of size. Every time a new person opens your website, he’ll have to download 30MB of Images to open the website. Here you have a couple of ways to deal with this. Optimize images before uploading them and install a plugin to optimize them after you’ve uploaded them. There are multiple Image optimizers that can help you out in such a case.

Next, you need to Cache your website. Caching is a way of saving the homepage in order for the server to serve it more quickly. Again, since you are using WordPress, there are available plugins for this. I’ll recommend using W3-Total-Cache as it provides a couple of caching methods you can use.

Try to optimize your website, usually, the database is not the source of the problems but something else along the way is.

Regards, KFSys

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.