Speed up WordPress: caching, images and a clean database

Make WordPress faster with a page cache that works on our Apache servers, lighter images, fewer plugins and a clean database.

EliteStarHosting Team8 November 2026Updated 26 November 20264 min read
Ready to start? View the Web Hosting plans

A slow site costs visitors, and a few plugins and settings often make WordPress a lot faster. Measure first, change one thing at a time and then measure again. Make a backup first in DirectAdmin, under Advanced Features > Backup and Restore.

Your hosting counts too: with our WordPress hosting your site runs on PHP 8.3 in the Netherlands, behind our own HTTP filtering.

Measuring with PageSpeed Insights

Enter your site's address at PageSpeed Insights. You get a report for mobile and one for desktop. Look at mobile first.

  • At the top you see data from real Chrome visitors over the last 28 days, if your site has enough visitors. Good is: LCP (how fast the largest element appears) within 2.5 seconds, INP (how fast the page responds) of at most 200 milliseconds and CLS (how much the page shifts) of at most 0.1.
  • Below that is a lab test with a score and tips. A score of 90 or higher is good. The score varies a little between runs, so test a few times.

A page cache that works on Apache

Our web hosting runs Apache, not LiteSpeed. The page cache of the LiteSpeed Cache plugin only works with a LiteSpeed server or the QUIC.cloud service, so it caches no pages here. Use WP Super Cache by Automattic instead:

  1. Go to Plugins > Add Plugin, search for WP Super Cache and click Install Now and then Activate.
  2. Go to Settings > WP Super Cache. On the Easy tab, choose Caching On (Recommended) and click Update Status.
  3. Open your site in a private window and view the source with Ctrl+U. At the bottom you see Cached page generated by WP-Super-Cache with a time. Reload: if the time stays the same, the cache works.

Logged-in users always get a fresh page, so test while logged out. Use only one cache plugin. Old content after changing your theme or menu? Click Delete Cache on the same tab.

Lighter images

  • Don't upload photos larger than you show them. WordPress makes smaller versions for phones by itself and scales down photos over 2560 pixels.
  • Use WebP or AVIF. WebP is about 30% smaller than JPEG on average, AVIF up to 50%. WordPress handles WebP since version 5.8 and AVIF since 6.5, if the server supports it. The Modern Image Formats plugin by the WordPress Performance Team converts new uploads to AVIF, or to WebP if the server can't make AVIF. You choose the format under Settings > Media.
  • Lazy loading is built in: WordPress only loads images lower on the page when a visitor scrolls to them, and gives the largest image at the top priority. So you don't need a separate lazy loading plugin. If such a plugin also delays the top image, your page actually gets slower.

Fewer plugins

Every plugin is extra code that has to load and be kept up to date. Delete plugins you no longer use, rather than only deactivating them. Not sure which plugin slows your site down? Query Monitor groups database queries by plugin, so you see which plugin is slow. Delete Query Monitor again when you're done.

Cleaning up the database

Your database fills up with old revisions, drafts, spam and expired temporary data. Clean that up with WP-Optimize:

  1. Install WP-Optimize and go to WP-Optimize > Database.
  2. Under Optimizations, tick for example Clean all post revisions, Clean all auto-draft posts, Remove spam and trashed comments and Remove expired transient options.
  3. Click Run all selected optimizations.

Don't turn on WP-Optimize's cache next to WP Super Cache. Want to keep at most five revisions per post from now on? Add this line to wp-config.php with File Manager in DirectAdmin, above the line That's all, stop editing!:

define( 'WP_POST_REVISIONS', 5 );

In November 2026, all plugins in this guide were maintained and tested with WordPress 7.1.4. Measure again with PageSpeed Insights after every step. Stuck? Get in touch.