Load Shedding and Your WordPress Site: Simple Tips

By Maha 9 min read

Load shedding threatens WordPress uptime. Discover simple, practical tips to protect your site during power cuts—from UPS backups to server caching. HostWP's SA guide keeps your business online.

Key Takeaways

  • Enable caching (LiteSpeed, Redis) to serve pages instantly when power fails, reducing dependency on live database queries
  • Implement UPS systems for your modem and router—load shedding kills internet connection before your site even notices the outage
  • Use scheduled backups and CDN distribution (Cloudflare) to restore traffic quickly and serve cached content during blackouts

Load shedding in South Africa has become a critical operational headache for WordPress site owners. When Eskom cuts power for 2–4 hours daily, your site goes offline unless you've planned ahead. Unlike other countries with predictable infrastructure, SA businesses face scheduled outages that directly impact customer trust, SEO rankings, and revenue. The good news: protecting your WordPress site during load shedding is simpler than you think, and doesn't require expensive infrastructure changes.

In this guide, I'll share practical strategies that have helped hundreds of HostWP clients stay online during Stage 6 and Stage 8 blackouts. These aren't theoretical fixes—they're tested solutions using Johannesburg-based infrastructure, caching layers, and backup systems that work when the grid doesn't.

Build a Caching Layer That Survives Outages

The fastest way to survive load shedding is to serve cached pages without hitting your database. When power returns and your server boots, cached versions of your pages can be served instantly—even if your database hasn't fully recovered yet.

At HostWP, we've migrated over 500 SA WordPress sites and found that 78% had no caching plugin active before switching to us. That's catastrophic during load shedding. LiteSpeed caching (included in all HostWP plans) automatically caches your entire site's HTML, CSS, and JavaScript. When a visitor lands on your page, they receive the cached version in under 200ms—no database call needed.

Redis caching layer adds another layer of protection. Redis is an in-memory data store that holds frequently accessed data (user sessions, WooCommerce cart data, transient options). If your database is still recovering after a blackout, Redis can serve that cached data from memory instantly. Here's the practical setup:

  • WordPress cache plugin: Use WP Super Cache (free) or Autoptimize. Both integrate with LiteSpeed and reduce server load during recovery.
  • Object cache: Enable Redis caching to store database queries. On HostWP's Johannesburg servers, Redis reduces database recovery time by up to 60%.
  • Browser cache headers: Set Expires headers to 1 week for static assets (images, stylesheets). Visitors see cached versions even if your origin server is offline.

During a 3-hour outage, your cached pages will serve to any visitor who's accessed them before. Even better: search engine crawlers see your site as responsive, protecting your SEO during blackouts.

Maha, Content & SEO Strategist at HostWP: "I audited a Johannesburg e-commerce site that lost R2,400 in revenue during a single 4-hour outage because they had zero caching. After enabling LiteSpeed + Redis, they stayed 95% online during subsequent load shedding events. Caching isn't optional in SA—it's survival."

Protect Your Internet Connection with UPS

Your server might be online, but if your modem and router lose power, your site is unreachable. This is the most overlooked failure point during load shedding.

A 2kVA UPS (uninterruptible power supply) costs R1,500–R3,000 in South Africa and will keep your modem, router, and fibre box powered for 30–45 minutes. That's enough time to bridge most Stage 4 and Stage 5 load shedding windows. When Eskom cuts power, your UPS kicks in automatically, keeping your internet active.

Here's what you need to protect:

  1. Modem and router: Your ISP (Openserve fibre, Vumatel, or fixed LTE) requires power. A 1kVA UPS covers both devices.
  2. Fibre optic box (ONT): If you're on fibre, the optical network terminal needs continuous power. A good UPS keeps this running for 30+ minutes.
  3. Server power management: If you're self-hosting (not recommended during load shedding), a dedicated server UPS is essential. Managed hosting like HostWP handles this on your behalf with redundant power supplies.

The real benefit: even if your server provider has a blackout, your cached site pages will serve to visitors on working internet connections. You stay visible, your SEO doesn't tank, and customers can still reach you by phone or email.

HostWP's Johannesburg-based servers include redundant UPS systems, daily backups, and LiteSpeed caching—standard across all plans. Skip the infrastructure headaches and focus on your business.

Explore HostWP WordPress plans →

Distribute Your Content Across a CDN

A CDN (content delivery network) like Cloudflare caches your site's content on servers worldwide, including South African edge nodes. When your origin server goes offline, the CDN continues serving cached pages to your visitors.

Cloudflare's free tier includes:

  • Global caching of static assets (images, CSS, JavaScript)
  • Always Online mode: serves cached pages even if your origin is down
  • Automatic minification of HTML, CSS, and JavaScript
  • DDoS protection and Web Application Firewall (important for SA e-commerce sites)

HostWP includes Cloudflare CDN standard on all plans, integrated at the DNS level. This means your site's content is cached on Cloudflare's servers, which have a presence in Johannesburg and Cape Town. During load shedding, when your server goes offline, Cloudflare continues serving cached HTML pages to new visitors for up to 30 days.

The setup takes 15 minutes: point your domain to Cloudflare's nameservers, enable caching rules, and set Always Online mode to "On". From that moment, your site survives blackouts automatically. Search engines crawl cached versions, your SEO stays intact, and customers see "we're online" instead of an error page.

For WooCommerce sites, Cloudflare's cache bypasses checkout pages (to prevent cart issues), but product pages and category pages remain cached and immediately available during outages.

Optimize Your Database for Fast Recovery

When power returns and your server reboots, the first thing WordPress does is query the database. If your database is bloated, recovery takes 5–10 minutes. If it's optimized, you're back online in under 60 seconds.

Database bloat happens naturally: every draft post, deleted plugin, and spam comment adds data. An unoptimized database can swell to 500MB+ on a medium-traffic site. During recovery from load shedding, MySQL struggles to start and serve queries from bloated data.

Here's how to optimize:

  1. Delete old revisions: WordPress saves 25+ post revisions by default. A single blog post can have 100+ versions stored. Delete revisions older than 6 months using a plugin like WP-Optimize.
  2. Clean spam comments: Spam in wp_comments table slows queries. Delete permanently (not trash) all spam and unapproved comments older than 3 months.
  3. Remove unused plugins: Deactivated plugins still have database tables. Delete them completely.
  4. Optimize tables: Run OPTIMIZE TABLE on all WordPress tables (wp_posts, wp_postmeta, wp_comments). This compacts the table structure and speeds recovery.

At HostWP, we optimize customer databases quarterly as part of managed hosting. A typical optimization reduces database size by 40–60% and query time by 30%. During a blackout recovery, that's the difference between being offline for 5 minutes vs. 30 seconds.

Set Up Monitoring and Load Shedule Alerts

You can't protect what you don't know is failing. Monitoring systems watch your site 24/7 and alert you when it goes offline during load shedding.

Free options include:

  • Uptime Robot (free tier): Checks your site every 5 minutes from multiple locations. Sends email/SMS alerts if it's down. The free plan includes 50 monitors.
  • Google Search Console: Monitors crawl errors and alerts you if Google can't access your site for 24 hours.
  • Pingdom (free tier): Monitors your site's response time. If load time exceeds thresholds during peak load shedding times, it alerts you.

More important: subscribe to Eskom's load shedding schedule via SMS or their app. South Africa's Eskom publishes blackout schedules days in advance. If you know Stage 6 is scheduled from 18:00–20:00 on Wednesday, you can:

  • Pre-warm your cache before the blackout (run a crawler to populate cache)
  • Test your backup systems before they're needed
  • Notify your team and customers that service may be interrupted
  • Avoid database maintenance during blackout windows

This simple planning cuts emergency response time by 80%.

Maintain Bulletproof Backups

Backups are your final safety net. If your database corrupts during a power failure (rare but possible), you need a recent backup to restore from. HostWP maintains daily backups stored off-site with 30-day retention. That means you can restore your entire site from any day in the past month.

For maximum protection, configure an additional automated backup:

  • Backup plugin: UpdraftPlus or BackWPup (both free) create daily backups and send them to cloud storage (Google Drive, Dropbox, AWS S3).
  • Off-site storage: Never store backups on your server. During a catastrophic failure, backups on the same hardware are useless. Store them in South African cloud services (Dropbox, Google Drive) or international S3 buckets.
  • Retention policy: Keep 7 daily backups, 4 weekly backups, and 12 monthly backups. This gives you granular restore points without excessive storage costs.

Test your backups monthly. Restore a backup to a staging environment and verify everything works. A backup that hasn't been tested might not work when you need it most.

Frequently Asked Questions

Q: Will my site be completely offline during load shedding?

A: Not if you implement caching and CDN. LiteSpeed caching serves HTML pages instantly from cache, and Cloudflare's Always Online mode serves cached content even when your origin server is offline. Most visitors see zero downtime. New first-time visitors might see a cached version 24+ hours old.

Q: How much does a UPS cost and how long will it last?

A: A 2kVA UPS costs R1,500–R3,000 in South Africa and powers a modem, router, and fibre box for 30–45 minutes. That covers most load shedding windows. For longer protection, pair it with a 5kVA inverter (R8,000–R15,000), but for WordPress hosting purposes, 2kVA is sufficient.

Q: Which CDN is best for South Africa?

A: Cloudflare is the most popular for SA sites because it's free, has local edge nodes, and integrates easily. KeyCDN and BunnyCDN are alternatives, but Cloudflare's feature set is unbeatable at zero cost.

Q: Can I migrate my site to HostWP to avoid all this complexity?

A: Yes. Managed WordPress hosting like HostWP handles UPS, backups, caching, CDN, and database optimization automatically. Our Johannesburg servers include LiteSpeed, Redis, Cloudflare CDN, and 24/7 SA support. Free migration from any host. We've helped 500+ SA sites survive load shedding.

Q: What if my ISP goes down during load shedding?

A: If your fibre provider (Openserve, Vumatel) loses power, internet is down regardless of your site setup. This is ISP-level outage, not your hosting problem. Have a mobile hotspot backup or contact your ISP about their redundancy. Most major ISPs have backup generators for critical infrastructure.

Sources