WordPress Speed Optimization
WordPress

Speeding Up WordPress: Boost Your PageSpeed Score with LiteSpeed Cache

Speed up your WordPress site with LiteSpeed Cache, image optimization, CSS/JS settings and the right plugin choices. A PageSpeed and Core Web Vitals guide.

  • MerkezHost Technical Team
  • 5 min read
  • Level: Intermediate
  • Updated:

A slow WordPress site loses visitors and drags down your search rankings. The good news is that most WordPress sites can become several times faster with a few correct settings. In this guide we explain how to configure the LiteSpeed Cache plugin correctly on LiteSpeed servers, how to optimise images, and the common mistakes that slow sites down.

Measure first: which metrics matter?

Google evaluates page experience with the Core Web Vitals metrics:

MetricWhat does it measure?Good value
LCP (Largest Contentful Paint)Load time of the largest content elementUnder 2.5 s
INP (Interaction to Next Paint)Response time to clicks/tapsUnder 200 ms
CLS (Cumulative Layout Shift)Page layout shift during loadingUnder 0.1

Use Google PageSpeed Insights for measurement and focus on the mobile result. Take a screenshot before making changes so you can see the effect of each step.

Step 1: Choose the right infrastructure

No plugin can fully make up for a slow server. The most important infrastructure factors for speed are:

  • LiteSpeed web server: Provides server-level page caching; pages are served without PHP running at all.
  • A current PHP version: PHP 8.x is noticeably faster than the old 7.x versions. You can change it in cPanel under Select PHP Version.
  • SSD/NVMe disks and sufficient CPU/RAM quota.

Step 2: Install LiteSpeed Cache

  1. In the WordPress dashboard, go to Plugins » Add New, search for "LiteSpeed Cache", then install and activate it.
  2. If you have another page caching plugin (WP Rocket, W3 Total Cache, WP Super Cache, etc.), deactivate and delete it.
  3. Under LiteSpeed Cache » Cache, check that the "Enable Cache" option is on.
SectionSettingRecommendation
CacheCache Logged-in UsersOff (unless it's a membership site)
CacheBrowser CacheOn
Page Optimization » CSSCSS MinifyOn
Page Optimization » JSJS MinifyOn
Page Optimization » JSLoad JS DeferredOn, then test the site
Page Optimization » MediaLazy Load ImagesOn
Be careful with combine settings

The "CSS Combine" and "JS Combine" options often bring no benefit on servers using HTTP/2 and HTTP/3, and can break the layout of some themes. If you enable them, check the site in a private window after every change.

Step 3: Optimise your images

On most sites, images make up the largest share of page size.

  • Resize images to their actual display size before uploading; don't show a 4000 px wide photo in an 800 px area.
  • Use the WebP or AVIF format. The Image Optimization section of LiteSpeed Cache can automatically convert existing images to WebP.
  • Exclude the main image at the top of the page (the LCP image) from lazy loading; otherwise LCP time increases.
  • Give images width and height values; this prevents layout shift (CLS).

Step 4: Clean up plugins and themes

  • Delete plugins you don't use. Every active plugin can add CSS/JS to the page and run database queries.
  • If you use a page builder, remove unnecessary widgets and animations.
  • Load third-party scripts such as social sharing, live chat and maps after user interaction where possible.

Step 5: Database maintenance

Over time, post revisions, trashed comments and expired transients accumulate in the database. You can clean these up in the Database section of LiteSpeed Cache. To limit the number of revisions, add this line to the wp-config.php file:

define( 'WP_POST_REVISIONS', 5 );
Back up first

Always take a backup before cleaning up the database. For details, see our MySQL backup guide.

Step 6: Using it together with Cloudflare

If you use Cloudflare, you can enter your API details in the CDN » Cloudflare section of LiteSpeed Cache so that the Cloudflare cache is also purged automatically whenever you purge the cache. For Cloudflare setup, see our Cloudflare guide.

Common mistakes that slow sites down

  • Using more than one caching plugin at the same time.
  • Large, uncompressed PNG/JPG images.
  • Loading dozens of Google Fonts weights.
  • Old themes/plugins that are no longer updated.
  • Overcrowded cheap hosting plans that hit their resource limits.

Conclusion

With the right infrastructure, a single caching plugin, optimised images and a clean plugin list, you can significantly raise your WordPress site's PageSpeed score. Our cPanel hosting plans running on LiteSpeed and CloudLinux are fully compatible with LiteSpeed Cache. If your site is with another provider, you can follow our WordPress migration guide or leave the migration to us free of charge.

Frequently Asked Questions

Does LiteSpeed Cache work on every host?

The plugin's page caching feature only works on the LiteSpeed or OpenLiteSpeed web server. MerkezHost cPanel hosting plans use LiteSpeed infrastructure.

Can I use more than one caching plugin?

No. Two page caching plugins at the same time can cause conflicts and white screen errors. Use only one.

Why does my PageSpeed score change with every test?

The location of the testing server, network conditions and third-party scripts affect the results. Don't rely on a single test; look at the average of several tests and at the real user data in Search Console.

  • #wordpress
  • #litespeed cache
  • #pagespeed
  • #site speed
  • #core web vitals
Share:
Read More

Related Guides