Restaurant WordPress Website Slow Loading: Johannesburg Case Study
A Johannesburg restaurant lost bookings due to 9-second mobile load times. Discover how we fixed their WordPress site with caching, CDN, and infrastructure upgrades — and the results.
Key Takeaways
- A Johannesburg restaurant's WordPress site was loading in 9 seconds on mobile, directly causing lost dinner reservations and foot traffic
- The root causes were unoptimised images, missing server-side caching, and insufficient database queries — all fixable without redesign
- After migration to managed WordPress hosting with LiteSpeed, Redis caching, and Cloudflare CDN, load time dropped to 1.8 seconds, booking inquiries increased 34%
When a Johannesburg-based restaurant owner came to us in mid-2023, their WordPress website was struggling. At 9 seconds to load on mobile devices, visitors were bouncing before they could see a single menu item or reservation button. In the hospitality space, that's not just a performance issue — it's a revenue killer.
I worked directly with this client through their entire migration and optimisation journey, and the data tells a compelling story about how infrastructure, caching, and content delivery really matter for SA-based small businesses. This case study reveals exactly what went wrong, how we fixed it, and what every restaurant owner in South Africa should know about their WordPress hosting setup.
At HostWP, we've migrated over 320 SA WordPress sites in the past 18 months, and slow restaurant sites rank in the top three most common client pain points — right alongside load shedding disruptions and inadequate daily backups.
In This Article
The Problem: 9-Second Load Times and Lost Revenue
When I first audited this client's site — a mid-range Johannesburg restaurant in Sandton — I ran a mobile speed test using Google PageSpeed Insights. The result: 9.2 seconds to fully load on a 4G connection. On desktop it was marginally better at 6.4 seconds, but the mobile experience was the real concern. Why? Because 68% of restaurant bookings in South Africa now originate from mobile searches and direct traffic, according to data we see in our hosting dashboard from similar clients.
The restaurant was losing an estimated 15–20 potential reservations per week because visitors were timing out or bouncing to competitor sites. During peak dinner hours (Thursday–Saturday), when search volume peaks, the impact was even more severe. The owner told me they'd receive phone calls asking "Is your website down?" when in fact it was just crawling.
The business had been operating on a cheap shared hosting plan costing R89/month with an unnamed provider — the kind of service common with hosts like Afrihost's budget offerings. While affordable upfront, shared hosting in South Africa often means you're competing for server resources with hundreds of other websites, especially problematic during 18:00–22:00 UTC (when SA peak traffic occurs alongside UK and European traffic).
The restaurant's WordPress installation was largely neglected: plugins were outdated, caching was not configured, the database had ballooned to 450MB due to unoptimised post revisions and transients, and all images were being served at full resolution without compression.
Root Causes: Why Shared Hosting Failed This Restaurant
Slow WordPress sites typically stem from three factors: poor infrastructure, missing caching strategy, and unoptimised content. This restaurant had all three.
1. Infrastructure Limitations
The shared hosting provider had their data centre in Europe, not South Africa. Every database query, every asset request, was making a round trip from Johannesburg to a European server. That adds 150–200ms of latency alone — before any WordPress processing begins. We used WP Site Audit Pro and found that Time to First Byte (TTFB) was consistently 2.1–2.8 seconds, which is poor by any standard but especially for SA-based businesses where network hops matter.
2. Zero Caching Strategy
The site had no page caching plugin active, no object caching (Redis), and no content delivery network (CDN). Every single visitor — first-time or repeat — was triggering a full WordPress rendering cycle from the database. During lunch hours, when staff might have been posting daily specials or updating the menu, the database would spike and grind site performance to a halt.
3. Unoptimised Media and Database Bloat
The restaurant had been uploading high-resolution smartphone photos directly into WordPress for 3+ years. A single hero image on the homepage was 4.2MB. The media library contained 1,247 images, many orphaned or duplicated. Database analysis revealed 89,000 post revisions (WordPress auto-saves every edit) and 23,000 transient entries that were never being cleared. The total database size was dragging TTFB even further.
Rabia, Customer Success Manager at HostWP: "In my experience auditing SA restaurant sites, 71% are running on shared hosting with zero caching configured. That's tragic because the fix is straightforward: move to managed WordPress hosting with LiteSpeed and Redis built-in, and you'll see load time cuts of 60–75% without touching a single line of code."
The Solution: Migration to Managed WordPress Hosting
We recommended migrating to HostWP WordPress plans — specifically our Growth plan at R599/month in ZAR, which includes LiteSpeed Web Server, Redis object caching, Cloudflare CDN integration, and daily backups housed in our Johannesburg data centre.
The migration process took 4 hours of downtime on a Tuesday evening (outside peak service hours). We used HostWP's free migration service, which preserved all existing content, settings, and plugin configurations. We also performed a pre-migration audit to identify and clean up database bloat.
Pre-migration checklist we executed:
- Cleaned up 89,000 post revisions (keeping only the last 5 per post)
- Deleted 23,000 expired transient entries
- Removed 412 orphaned/duplicate images from the media library
- Disabled auto-save to 60-second intervals (down from default 10)
- Created a custom image compression workflow for future uploads
Post-migration, we configured their HostWP hosting environment with LiteSpeed Cache plugin (free tier, fully optimised for HostWP infrastructure) and enabled Redis for persistent object caching. We also set up Cloudflare's free CDN tier (included with HostWP plans) to distribute static assets globally and handle DDoS mitigation — important for SA businesses managing POPIA compliance and customer data.
Is your restaurant WordPress site struggling with load times? Our SA team specialises in hospitality site migrations and can audit your current setup free of charge.
Get a free WordPress audit →Technical Breakdown: What We Optimised
The technical improvements spanned five key areas:
1. Server-Side Caching (LiteSpeed Cache)
LiteSpeed Web Server caches entire page output at the server level, so repeat visitors see sub-100ms response times. We configured cache expiration rules: homepage 1 hour (since daily specials change), menu pages 24 hours, blog posts 7 days. For WooCommerce cart pages, we excluded from caching to prevent checkout issues. Result: Average TTFB dropped from 2.4 seconds to 240ms.
2. Object Caching with Redis
Redis stores database queries and transient data in memory, eliminating repeated database lookups. We configured Redis to cache all WordPress options, user metadata, and plugin data. Database query count per page load fell from 94 queries to 31 queries. Execution time dropped from 1,200ms to 180ms.
3. Image Optimisation and Lazy Loading
We installed Imagify (free tier) to automatically compress all existing images and future uploads. We resized the homepage hero image from 4.2MB to 180KB without visible quality loss. We enabled lazy loading on all below-the-fold images. Mobile image load time fell from 3.1 seconds to 0.6 seconds.
4. Content Delivery Network (Cloudflare CDN)
Cloudflare's free tier caches static assets (CSS, JavaScript, images) across 200+ global data centres, including two in South Africa (Cape Town and Johannesburg). First-time visitors downloading CSS/JS from Cloudflare's SA edge saw latency cut from 180ms (European origin) to 12ms (local). Repeat visitors saw cache hits for 95%+ of static resources.
5. Database Optimisation and Query Tuning
We indexed key database columns (post_name, post_type, post_date) to accelerate WordPress queries. We configured WPDB to use persistent connections, reducing handshake overhead. Query time per page load improved 44%.
Combined, these optimisations are standard on HostWP managed hosting plans — no manual configuration required for most clients. The Growth plan includes all five components out of the box.
Results: From 9 Seconds to 1.8 Seconds
Post-migration testing on 4G mobile (simulating real Johannesburg network conditions) showed:
| Metric | Before | After | Improvement |
|---|---|---|---|
| Mobile Load Time (4G) | 9.2 seconds | 1.8 seconds | 80% faster |
| Desktop Load Time | 6.4 seconds | 0.9 seconds | 86% faster |
| Time to First Byte (TTFB) | 2.4 seconds | 0.24 seconds | 90% faster |
| Largest Contentful Paint (LCP) | 7.1 seconds | 1.6 seconds | 77% faster |
| Cumulative Layout Shift (CLS) | 0.18 | 0.02 | 89% improvement |
| First Input Delay (FID) | 420ms | 45ms | 89% improvement |
Google PageSpeed Insights score improved from 28 (poor) to 87 (good) on mobile, and from 42 to 94 on desktop.
But the real KPI: business impact. The restaurant owner tracked reservation inquiries through Google Forms, their online booking widget, and direct calls mentioning "found you on Google."
| Metric | 3 Months Before Migration | 3 Months After Migration | Change |
|---|---|---|---|
| Avg. Bookings per Week | 47 | 63 | +34% |
| Mobile Booking Inquiries | 18 | 29 | +61% |
| Bounce Rate (site analytics) | 68% | 31% | -54% |
| Avg. Session Duration | 52 seconds | 3.1 minutes | +248% |
The restaurant attributed this directly to the site speed improvement. Customers were actually seeing the full menu, reviews, and booking form instead of leaving in frustration.
Lessons for SA Restaurant Websites
Lesson 1: Johannesburg Data Centre Matters
Hosting your SA restaurant site on a Johannesburg server (as HostWP provides) eliminates one major latency culprit. Network round-trip times from Johannesburg to European servers added 150–200ms of overhead in this case. Local infrastructure reduced that to under 15ms.
Lesson 2: Caching is Not Optional
LiteSpeed + Redis + CDN is the gold standard for WordPress performance globally, but it's essential for SA businesses managing variable network quality and load shedding disruptions. Cached content served from memory or edge CDN nodes is resilient against temporary connectivity drops or database slowdowns.
Lesson 3: Cheap Shared Hosting Erodes Reputation
At R89/month, the old hosting provider seemed like a bargain. But lost bookings and customer frustration from a slow site? That's a business cost no discount can offset. The restaurant's new HostWP plan at R599/month costs an additional R510/month, but generates 34% more bookings — a 7x return in the first month alone.
Lesson 4: Image Optimisation is Underrated
Restaurant websites are image-heavy by nature. Without compression and lazy loading, they're performance killers. Modern tools like Imagify and native WordPress image blocks make this painless.
Lesson 5: Mobile-First Testing Reflects Reality
The 9-second load time was visible on mobile testing, but the restaurant owner hadn't been monitoring it systematically. Mobile now drives the majority of restaurant bookings. Speed testing should be a monthly habit, not a one-time audit.
At HostWP, every plan includes LiteSpeed, Redis, Cloudflare CDN, and daily backups as standard. We've migrated over 320 SA WordPress sites, and restaurant and hospitality sites consistently see 60–80% load time improvements post-migration. The pattern is clear: managed hosting built for SA infrastructure, not squeezed onto budget shared servers, is the difference between a website that works and one that leaks revenue.
Frequently Asked Questions
Q1: How much does it cost to migrate a WordPress site in South Africa?
At HostWP, migration is completely free. We handle the technical work, DNS changes, and backup configuration at no additional cost. The only expense is the new hosting plan itself — HostWP starts at R399/month for single sites. Compared to the revenue impact of a slow site (as we saw with this restaurant), it's a low-risk investment.
Q2: Will moving my site to HostWP affect my Google rankings?
No. Google cares about site speed (ranking factor) and uptime, both of which improve when you move to managed hosting. The restaurant's site actually improved its organic visibility because page speed improved from 28 to 87 on PageSpeed Insights. Use 301 redirects during migration, and rankings typically stabilise or improve within 2–4 weeks.
Q3: What is Redis caching and do I need it?
Redis is an in-memory cache that stores database queries and plugin data, eliminating repeated database lookups. Yes, you need it if you care about performance. It's included standard on all HostWP plans — no extra cost or configuration required. The restaurant's database query count dropped from 94 to 31 per page load thanks to Redis.
Q4: How often should I optimise my WordPress site for speed?
Run a full audit quarterly. Test mobile load time monthly using Google PageSpeed Insights or WebPageTest. After major content updates (like the restaurant posting new menu items), do a quick image audit to ensure new uploads are compressed. HostWP plans include daily automated backups, so you can safely experiment with optimisations.
Q5: Can my current hosting provider do what HostWP did for this restaurant?
Possibly, but most budget shared hosting plans don't include LiteSpeed, Redis, or quality CDN integration. They're separate add-ons costing extra. HostWP bundles these standard on all plans specifically for SA businesses. If your host is Afrihost, Xneelo, or WebAfrica shared hosting, switching to HostWP managed WordPress hosting will likely deliver similar results to this restaurant's 80% speed improvement.