How to Reduce TTFB on Shared Hosting (2026 Guide)

#3 Speed Optimised Shared Hosting Providers
Hosting Provider Reviews Overall Rating Starts from
1 ScalaHosting 2.2k+
rating circle
4.9 Positive
$2.95 / mo. -78%
2 SiteGround 29.1k+
rating circle
4.8 Positive
$3.41 / mo. NOW -81%
3 HostArmada 1.1k+
rating circle
4.9 Positive
$1.49 / mo. -85% NOW
-78%

1. ScalaHosting

Number of Reviews rating circle 2.2k+
Avg. Review Rating rating circle 4.9 Positive
Customer Support rating circle Positive
Starts from $2.95 / mo.
Server Locations
Server Location in United States Of AmericaServer Location in BulgariaServer Location in United KingdomServer Location in FranceServer Location in GermanyServer Location in SingaporeServer Location in AustraliaServer Location in JapanServer Location in South KoreaServer Location in Canada
NOW -81%

2. SiteGround

Number of Reviews rating circle 29.1k+
Avg. Review Rating rating circle 4.8 Positive
Customer Support rating circle Positive
Starts from $3.41 / mo.
Server Locations
Server Location in BulgariaServer Location in United States Of AmericaServer Location in United KingdomServer Location in SpainServer Location in NetherlandsServer Location in GermanyServer Location in AustraliaServer Location in Singapore
-85% NOW

3. HostArmada

Number of Reviews rating circle 1.1k+
Avg. Review Rating rating circle 4.9 Positive
Customer Support rating circle Positive
Starts from $1.49 / mo.
Server Locations
Server Location in United KingdomServer Location in CanadaServer Location in United States Of AmericaServer Location in GermanyServer Location in IndiaServer Location in SingaporeServer Location in AustraliaServer Location in FranceServer Location in NetherlandsServer Location in Indonesia

On This Page: [hide]

Caching enabled, images compressed, scripts deferred. You’ve done everything the optimization plugins recommend. Yet PageSpeed Insights still flags “Reduce initial server response time” in red. The culprit is TTFB: Time to First Byte. This metric measures how long your server takes to start sending data after receiving a request. On shared hosting, TTFB commonly exceeds 800ms. Google recommends under 200ms.

Quick answer: The fastest TTFB improvement on shared hosting comes from switching to a LiteSpeed-powered host with LSCache, which can drop response times from 800ms to under 200ms without changing anything else. If switching hosts isn’t an option, enabling a free Cloudflare CDN, upgrading to PHP 8.2+, and properly configuring OPcache can reduce TTFB by 50-70% on most setups. Below, we cover each method with step-by-step instructions.


Last reviewed: February 2026. Methods verified on current hosting environments.


Most TTFB guides repeat the same generic advice without addressing shared hosting’s specific constraints. You can’t install custom server software. You’re sharing CPU and memory with dozens of other accounts. This guide focuses on optimizations that actually work within those limits, with realistic expectations for each method.

What is TTFB and Why Does It Matter in 2026?

TTFB (Time to First Byte) measures the time between a browser requesting your page and receiving the first byte of response data. This includes three components: DNS lookup time, connection establishment, and server processing time. On shared hosting, server processing is typically the bottleneck.

Here’s what happens when someone visits your site:

  1. Browser looks up your domain’s IP address (DNS)
  2. Browser establishes a connection with the server (TCP/TLS handshake)
  3. Server receives the request and processes it (database queries, PHP execution)
  4. Server sends back the first byte of the HTML response

The total time for steps 1-4 is your TTFB. Steps 1-2 depend on network conditions and CDN configuration. Step 3 depends on your server’s speed and your site’s optimization. On shared hosting, step 3 is where you lose the most time.

TTFB Benchmarks for 2026

Google’s guidance classifies TTFB performance as follows:

  • Good: 800ms or less
  • Needs improvement: 800ms to 1.8 seconds
  • Poor: Above 1.8 seconds

However, those are minimum thresholds. Premium managed WordPress hosts consistently deliver TTFB under 200ms. For SEO and user experience, aim for under 200ms as your target. Anything above 600ms puts you at a disadvantage against faster competitors.

TTFB and Core Web Vitals

TTFB isn’t one of the three Core Web Vitals (LCP, INP, CLS) that directly affect Google rankings. But it’s the foundation that determines whether you can pass LCP (Largest Contentful Paint). If your TTFB exceeds 800ms, no amount of image optimization or JavaScript deferral will save your LCP score. The server simply starts too late.

Think of TTFB as the foundation of page speed. A slow foundation means everything built on top is delayed: First Contentful Paint, Largest Contentful Paint, and Time to Interactive all shift later. Google’s 2025-2026 updates increased the weight of page experience signals, making TTFB optimization more important than ever.

How to Check Your Current TTFB

Before optimizing, establish your baseline. There are several ways to measure TTFB:

Method 1: Chrome DevTools (Most Accurate for Your Location)

  1. Open Chrome and navigate to your website
  2. Press F12 or right-click and select Inspect
  3. Click the Network tab
  4. Refresh the page (Ctrl+Shift+R on Windows, Cmd+Shift+R on Mac for a clean reload)
  5. Click the first HTML document request (your page name)
  6. Look at the Timing tab and find Waiting for server response

This “Waiting for server response” value is your TTFB from your current location. Test multiple times and average the results, as TTFB varies between requests.

Method 2: Online Testing Tools

For testing from different geographic locations, use these tools:

  • PageSpeed Insights (pagespeed.web.dev) shows real-user TTFB data from Chrome users if your site has enough traffic
  • GTmetrix (gtmetrix.com) lets you test from multiple server locations
  • KeyCDN Tools (tools.keycdn.com/performance) tests from 10+ global locations simultaneously

Test from the location closest to your target audience. If your visitors are primarily in Germany and you’re testing from the US, your results won’t reflect actual user experience.

What Your Numbers Mean

Record your baseline TTFB before making any changes. Shared hosting typically shows:

  • Well-optimized shared hosting: 200-400ms
  • Average shared hosting: 400-800ms
  • Overloaded or poorly configured: 800ms to 3+ seconds

If you’re already under 400ms, the optimizations below will help but won’t produce dramatic gains. If you’re above 800ms, significant improvement is possible.

Optimization 1: Use LiteSpeed with LSCache

Expected impact: 50-75% TTFB reduction

The single biggest TTFB improvement on shared hosting comes from LiteSpeed server technology. LiteSpeed is a high-performance web server that replaces Apache. LSCache (LiteSpeed Cache) is its built-in caching system that operates at the server level rather than through PHP.

Independent benchmarks show Apache-powered servers typically deliver 450-500ms TTFB. LiteSpeed averages below 300ms out of the box, dropping to under 100ms with LSCache enabled. One documented case showed TTFB dropping from 800ms to 200ms literally overnight after migrating to a LiteSpeed host.

Why LiteSpeed Beats Apache

So why does LiteSpeed make such a big difference? Traditional caching plugins (WP Super Cache, W3 Total Cache) work within PHP. When a request arrives, the server still loads PHP, executes the plugin code, checks if a cache exists, then serves the cached file. LiteSpeed’s cache operates before PHP ever loads. The server checks for a cached version and serves it directly, bypassing PHP entirely for cached pages.

This architectural difference explains why switching to LiteSpeed often produces better results than any plugin optimization on Apache. It’s not a small gain. It’s a fundamental shift in how caching works.

How to Check If Your Host Offers LiteSpeed

  • Log into your hosting control panel (cPanel, DirectAdmin, or similar)
  • Look for “LiteSpeed” branding or “LiteSpeed Web Cache Manager”
  • Or contact your host’s support and ask if they use LiteSpeed

Major shared hosting providers using LiteSpeed include HostArmada, Hostinger (on some plans), A2 Hosting (Turbo plans), ChemiCloud, and many others. If your current host uses Apache, migrating to a LiteSpeed host may be the fastest path to better TTFB.

Configuring LiteSpeed Cache for WordPress

If your host runs LiteSpeed, install the free LiteSpeed Cache plugin for WordPress:

  1. Install and activate the LiteSpeed Cache plugin from the WordPress repository
  2. Navigate to LiteSpeed Cache > Cache in your dashboard
  3. Enable Enable Cache under Cache Control
  4. Set Guest Mode to ON (improves first-visit performance)
  5. Under Object Cache, enable if your host provides Redis or Memcached

The default settings work well for most sites. Avoid enabling the Crawler feature on shared hosting, as it consumes resources and may violate your host’s terms.

Optimization 2: Enable a CDN (Content Delivery Network)

Expected impact: 20-40% for static caching, 70-90% with full-page edge caching

A CDN places cached copies of your content on servers worldwide. When a visitor requests your site, the CDN serves it from the nearest location. This reduces the physical distance data travels, cutting network latency.

For TTFB specifically, CDNs help in two ways:

  • Reduced network latency: A visitor in London gets served from a London edge server, not your origin server in Dallas
  • Edge caching: Full-page caching at the CDN edge means your origin server doesn’t process requests at all for cached content

Cloudflare Free Tier Setup

Cloudflare offers a free CDN that works well with shared hosting. Unlike some competitors, the free tier isn’t artificially limited. You get unlimited bandwidth, basic DDoS protection, global edge caching, and automatic HTTP/2 and HTTP/3 support. HTTP/3 alone can reduce connection latency by 30-50% on mobile networks.

  1. Create a free account at cloudflare.com
  2. Add your domain and let Cloudflare scan existing DNS records
  3. Change your domain’s nameservers to the ones Cloudflare provides (at your registrar)
  4. Wait for DNS propagation (usually under 24 hours)
  5. Once active, enable Full SSL under SSL/TLS settings

After setup, Cloudflare automatically caches static assets (images, CSS, JavaScript). For full-page caching, you’ll need Page Rules or the APO feature (paid addon at USD 5/month for WordPress).

Cloudflare APO for WordPress

Cloudflare APO (Automatic Platform Optimization) caches entire HTML pages at the edge. This is the closest thing to LiteSpeed-level caching you can add to an Apache-based host without migrating. APO costs USD 5/month but can reduce TTFB by 70-90% for logged-out visitors.

Note: Cloudflare APO doesn’t work with LiteSpeed Cache’s Guest Mode. If you’re on a LiteSpeed host, skip APO and use the native LSCache instead.

Optimization 3: Upgrade to PHP 8.2 or Higher

Expected impact: 15-30% faster execution

PHP version directly impacts server response time. Benchmarks show PHP 8.3 handles roughly 14-20% more requests per second compared to PHP 7.4. For WordPress 6.4+, PHP 8.2 or 8.3 is recommended.

One documented test showed TTFB improving from 500ms to 175ms simply by upgrading from PHP 5.4 to PHP 7.1. Modern PHP 8.x versions continue this performance trajectory.

How to Check and Upgrade PHP

  1. Log into your hosting control panel (cPanel or equivalent)
  2. Look for Select PHP Version, PHP Manager, or similar
  3. Note your current version
  4. Select PHP 8.2 or PHP 8.3 (as of 2026, PHP 8.1 security support has ended)
  5. Save changes

Before upgrading, verify your WordPress themes and plugins are compatible. As of 2026, roughly 90% of themes and plugins support PHP 8.x. To check compatibility:

  • Install the PHP Compatibility Checker plugin
  • Run a scan against PHP 8.2
  • Update or replace any incompatible plugins before switching

Optimization 4: Configure OPcache Properly

Expected impact: 20-40% reduction in PHP execution time

OPcache is a PHP extension that caches compiled PHP scripts in memory. Without OPcache, PHP recompiles every script on every request. With OPcache, compiled code stays in memory and executes immediately. This cuts TTFB by eliminating compilation overhead.

Most shared hosts have OPcache enabled by default. The problem is default settings are often too conservative for WordPress. A properly tuned OPcache can reduce PHP execution time by 50-80%.

If your host allows custom php.ini or OPcache configuration, use these values:

  • opcache.enable=1
  • opcache.memory_consumption=384 (default 128 is too low for WordPress)
  • opcache.interned_strings_buffer=64
  • opcache.max_accelerated_files=10000 (caching fewer files causes frequent flushes)
  • opcache.revalidate_freq=0 (with validate_timestamps off, or 60 seconds otherwise)

The default 128MB memory often isn’t sufficient for WordPress with multiple plugins. This causes OPcache to reset periodically, creating TTFB spikes whenever the cache rebuilds. Setting memory_consumption to 256-384MB prevents this.

Checking OPcache Status

To verify OPcache is working:

  1. Install the OPcache Dashboard plugin or create a phpinfo file
  2. Check that OPcache is enabled
  3. Monitor the hit rate (should be above 98%)
  4. Watch for evictions (should be near zero)

If hit rate is low or evictions are high, your allocated memory is too small. Contact your host about increasing OPcache memory limits. Fair warning: not all shared hosts allow custom OPcache settings.

Optimization 5: Enable Object Cache (Redis or Memcached)

Expected impact: 30-70% faster database operations (most noticeable on dynamic pages)

Object caching stores the results of WordPress database queries in memory. When a page loads, WordPress makes dozens of database queries for options, posts, user data, and more. With object cache, repeated queries return instantly from memory instead of hitting the database.

This optimization helps most on dynamic pages that can’t be fully cached: logged-in user dashboards, WooCommerce carts, member areas, and admin pages. For these cases, object cache can reduce TTFB by up to 70% when combined with database optimization.

Does Your Host Offer Object Cache?

Redis and Memcached aren’t standard on basic shared hosting. Check for availability:

  • Look for Redis or Memcached options in your hosting panel
  • Check your hosting plan’s feature list
  • Contact support and ask if object caching is available

Mid-tier and premium shared hosting plans often include Redis. If your plan doesn’t offer it, this may be a reason to upgrade tiers or hosts. The performance benefit justifies the cost for database-heavy sites.

Setting Up Redis with WordPress

If your host provides Redis:

  1. Enable Redis in your hosting panel (usually one click)
  2. Install the Redis Object Cache plugin (by Till Kruss)
  3. Go to Settings > Redis and click Enable Object Cache
  4. If using LiteSpeed Cache, enable Object Cache in the LSCache plugin settings instead

Important: Redis must be local to your server. Remote Redis connections actually worsen TTFB because the network round-trip adds latency. If your host offers Redis, it should be on the same server.

Optimization 6: Optimize Your Database

Expected impact: 10-30% faster queries (varies by bloat level)

Object cache only helps if your database is clean. A bloated database with poorly indexed tables still performs badly, just with slightly faster repeated queries. Address the underlying data quality first.

Common Database Bloat Sources

  • Post revisions: WordPress saves every edit as a revision. A frequently edited post might have 50+ revisions
  • wp_options table: Autoloaded options grow over time. Plugins often leave data behind after deletion
  • Transients: Expired transients accumulate if not cleaned
  • Spam and trashed comments: These occupy space and slow queries
  • Log tables: Security and analytics plugins store large logs

Database Optimization Steps

  1. Backup first using your hosting panel or a plugin like UpdraftPlus
  2. Install WP-Optimize or Advanced Database Cleaner
  3. Clean post revisions, auto-drafts, and trashed posts
  4. Clean spam and trashed comments
  5. Clean expired transients
  6. Optimize database tables (this reorganizes data for faster access)

For wp_options specifically, check the autoload column. Options with autoload=’yes’ are loaded on every page. Use a plugin like Query Monitor to identify heavy autoload data that should be set to ‘no’.

Optimization 7: Reduce Plugin Bloat

Expected impact: 5-25% depending on which plugins you remove

Every plugin adds PHP execution time. Even “lightweight” plugins make database queries and load files. With 30+ active plugins, the cumulative overhead becomes significant.

TTFB specifically suffers from plugins that:

  • Run on every page load (analytics, security scanners)
  • Make external API calls (social feeds, stock tickers)
  • Query the database heavily (some page builders, related posts plugins)
  • Load large libraries (font icon packs, animation frameworks)

Identifying Slow Plugins

  1. Install Query Monitor plugin
  2. Load any page on your site
  3. Check the Query Monitor panel for Queries by Component and PHP times
  4. Note which plugins generate the most queries or take the longest

Run this check on your homepage and a few key pages. The results often reveal one or two plugins responsible for most of the database load.

Action Steps

  • Deactivate plugins you don’t actively use
  • Replace heavy plugins with lightweight alternatives (e.g., Jetpack with individual single-purpose plugins)
  • Consider server-side alternatives for tasks like image optimization (handled during upload vs. every request)
  • Use Query Monitor to identify plugins making excessive database queries

When Shared Hosting Isn’t Enough

Here’s the honest truth: sometimes optimization isn’t enough. Shared hosting has inherent limitations:

  • Noisy neighbors: Other accounts on your server consume resources, affecting your performance
  • Resource caps: CPU, memory, and I/O limits restrict what your site can do
  • No server-level control: You can’t adjust web server configuration, install custom software, or tune MySQL

If you’ve implemented all optimizations above and TTFB still exceeds 500ms consistently, consider these upgrades:

Option 1: Premium Shared Hosting

Some shared hosting tiers include dedicated resources, LiteSpeed, Redis, and NVMe storage. These “business” or “turbo” plans occupy a middle ground between basic shared and VPS. They cost more (USD 10-25/month) but often deliver sub-300ms TTFB.

Option 2: Managed WordPress Hosting

Providers like Kinsta, WP Engine, and Cloudways optimize specifically for WordPress. They handle caching, CDN integration, and server tuning automatically. Expect TTFB under 200ms in most regions, but at USD 25-50+/month.

Option 3: VPS (Virtual Private Server)

A VPS gives you dedicated resources and full server control. You can install LiteSpeed, configure OPcache perfectly, and tune MySQL. However, you’re responsible for server management. Managed VPS options exist for those who want control without the maintenance burden.

For more on cloud-based alternatives, see our cloud hosting comparison.

Frequently Asked Questions

What TTFB should I aim for on shared hosting?

Target under 400ms for shared hosting with optimization. Under 300ms is achievable with LiteSpeed and good caching. If you’re above 600ms after optimization, your host may be overselling resources or running outdated infrastructure. Premium shared hosts and managed WordPress hosting routinely deliver under 200ms.

Does TTFB affect Google rankings directly?

TTFB isn’t a direct ranking factor in Google’s Core Web Vitals (which includes LCP, INP, and CLS). However, TTFB directly affects LCP, which is a ranking factor. If your server responds slowly, your LCP score suffers regardless of how optimized your content is. Google’s documentation recommends keeping TTFB under 200ms for optimal LCP performance.

Can a caching plugin fix TTFB on Apache?

Caching plugins help but can’t match LiteSpeed-level performance. Even the best caching plugin (WP Super Cache, W3 Total Cache, WP Rocket) still processes through PHP. On Apache, expect 300-500ms TTFB with good caching. On LiteSpeed with native LSCache, expect 100-200ms. The architectural difference matters.

Should I disable plugins to improve TTFB?

Don’t disable essential plugins. Instead, identify the heavy ones using Query Monitor and look for lighter alternatives. A security plugin that runs on every request adds more TTFB overhead than a contact form plugin that only runs on one page. Focus on plugins that execute site-wide and make database queries.

Why is my TTFB worse at certain times?

Shared hosting performance varies based on server load. When neighboring accounts receive traffic spikes, your resources get constrained. If you notice consistent slowdowns during business hours or specific times, your server may be oversold. This is a host-level problem that optimization won’t fully solve.

I did everything and TTFB is still slow. What now?

If you’ve implemented caching, upgraded PHP, cleaned your database, and TTFB still exceeds 600ms, the problem is almost certainly your host’s infrastructure. Before migrating, try one test: create a blank WordPress install with the default theme and no plugins. Measure its TTFB. If even a fresh install is slow, you’ve confirmed the server is the bottleneck. Time to switch hosts or upgrade to VPS.

Final Recommendations

Improving TTFB on shared hosting requires a layered approach. No single optimization solves everything. Start with the changes that require the least effort and provide the biggest impact:

  1. Check if your host uses LiteSpeed. If not, consider migrating. This single change often produces better results than all other optimizations combined.
  2. Enable Cloudflare’s free CDN. Even without full-page caching, reduced network latency helps visitors far from your server.
  3. Upgrade to PHP 8.2+. Quick change, free performance gain.
  4. Verify OPcache is enabled and properly configured. Contact your host if memory allocation is too low.
  5. Enable Redis object cache if available. Helps most on dynamic pages.
  6. Clean your database and audit plugins. Ongoing maintenance that compounds over time.

After implementing these changes, retest your TTFB using the methods described earlier. If you’re still above 500ms on a well-configured site, the limitation is your hosting infrastructure. At that point, upgrading to VPS hosting or cloud hosting may be the only path to faster response times.

Looking for specific hosting recommendations? Our shared hosting comparison covers providers with LiteSpeed and optimized infrastructure. For WordPress-specific options, see our managed WordPress hosting guide.

Researched and written by:
HowToHosting Editors
HowToHosting.guide provides expertise and insight into the process of creating blogs and websites, finding the right hosting provider, and everything that comes in-between. Read more...

Leave a Comment

Your email address will not be published. Required fields are marked *

This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Privacy Policy.
I Agree
At HowToHosting.Guide, we offer transparent web hosting reviews, ensuring independence from external influences. Our evaluations are unbiased as we apply strict and consistent standards to all reviews.
While we may earn affiliate commissions from some of the companies featured, these commissions do not compromise the integrity of our reviews or influence our rankings.
The affiliate earnings contribute to covering account acquisition, testing expenses, maintenance, and development of our website and internal systems.
Trust howtohosting.guide for reliable hosting insights and sincerity.