Fix Recurring 504 Errors & Optimize WordPress/WooCommerce Server Performance

Posted 5 days ago

Only freelancers located in the U.S. may apply.U.S. located freelancers only

Summary

We run a WordPress site using WooCommerce and LearnDash, hosted on an 8 vCPU VPS behind Cloudflare (Free plan). We get recurring 504 Gateway Timeout errors, especially during our marketing campaign windows. As a workaround, we've been turning on Cloudflare's "Under Attack Mode" during bad periods. This stops the 504s but breaks our own site's background processes (WP-Cron, WooCommerce Action Scheduler) — when we turn it off, a large backlog builds up and PHP workers hit their limit trying to catch up. This isn't sustainable, and it degrades the experience for real students logging into LearnDash courses and completing WooCommerce purchases. We've already confirmed one root cause (a fatal PHP error in a plugin, since fixed) and set up a Cloudflare Cache Rule for our top landing pages, but 504s are still happening. We believe there is more than one contributing cause. We need a developer to: Investigate our server logs (PHP-FPM, Apache/Nginx, WAF) to find the real root cause(s) of the 504s — is it bot/scanner traffic, our own campaign traffic, WordPress cron/background jobs, a specific plugin, or genuine server capacity limits? Set up proper server-level cron (replacing WordPress's visitor-triggered pseudo-cron) Recommend and implement caching/optimization so PHP workers stop hitting their limit, without needing "Under Attack Mode" as a workaround Advise on whether our current VPS is adequately sized, or whether the issue is configuration rather than capacity A full technical brief with background, findings so far, and a detailed investigation checklist is attached.

  • Less than 30 hrs/week
    Hourly
  • < 1 month
    Duration
  • Expert
    Experience Level
  • $50.00

    -

    $60.00

    Hourly
  • Remote Job
  • One-time project
    Project Type
Skills and Expertise
Mandatory skills
PHP
WordPress
WooCommerce
Activity on this job
  • Proposals:20 to 50
  • Last viewed by client:2 hours ago
  • Interviewing:
    0
  • Invites sent:
    0
  • Unanswered invites:
    0
About the client
Member since Aug 13, 2026
  • United States
    12:32 PM

Explore similar jobs on Upwork

Shopify Website CreationHourly‐ Posted 1 month ago
WordPress
WooCommerce
PHP
WordPress e-Commerce
Shopify
Klaviyo

How it works

  • Post a job icon
    Create your free profile
    Highlight your skills and experience, show your portfolio, and set your ideal pay rate.
  • Talent comes to you icon
    Work the way you want
    Apply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
  • Payment simplified icon
    Get paid securely
    From contract to payment, we help you work safely and get paid securely.
Want to get started? Create a profile

About Upwork

  • Rating is 4.9 out of 5.
    4.9/5
    (Average rating of clients by professionals)
  • G2 2021
    #1 freelance platform
  • 49,000+
    Signed contract every week
  • $2.3B
    Freelancers earned on Upwork in 2020

Find the best freelance jobs

Growing your career is as easy as creating a free profile and finding work like this that fits your skills.

Trusted by

  • Microsoft Logo
  • Airbnb Logo
  • Bissell Logo
  • GoDaddy Logo