Report this

What is the reason for this report?

Reducig TTFB on wordpress sites

Posted on April 28, 2021

I’m trying to improve the TTFB on multiple sites that I host on DigitalOcean. They’re all Wordpress. I use Serverpilot to maintain the servers. I run Ubuntu on the servers, all of them updated to 20.04.



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!

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.

Hi @tmichaelcrowe,

In the past when I’ve had to deal with improving TTFB, I’ve found that it’s a mix of looking both into the website and the server itself.

Let’s start with the website itself

  • You’ll need to make sure the size of your pages are not too big by uploading only optimized images.
  • You’ll need to enable GZIP compression. If using Apache, this can be done directly in your .htaccess file.
  • Add some sort of caching. Using WordPress actually helps as there are multiple plugins which can help you deal with that
  • Make sure you are not doing too many requests per page

Server

  • Install some server-side caching. I would recommend using Opcache. It’s a good option
  • Make sure you are using the latest PHP version, it can help a lot
  • While using the latest PHP version, install PHP-FPM and use it as well. It speeds the time of the requests a lot if configured properly.

I hope this would be of some help!

Regards, KFsys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.