Reducig TTFB on wordpress sites

Posted April 28, 2021 306 views
ApachePHPCachingUbuntu 20.04

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.

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.

Submit an Answer
1 answer

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


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