• Resolved myscenatech0

    (@myscenatech0)


    Hi,
    I’m running WP Optimize on our main site and ran into a serious issue: when the cache is enabled, trying to publish new posts causes 504 Gateway Timeout errors — especially with the Classic Editor.

    Here’s what we’ve observed:

    • Disabling WP Optimize cache allows publishing posts immediately.
    • With cache enabled, publishing times out — even when preload is not fully complete.
    • We tested on a staging site (Admin2) as well, and the same issue happens.
    • Posts take 20–25 seconds to save using the Block Editor, but it still works.
    • With the Classic Editor + cache enabled, saving fails with 504 error.
    • With cache disabled, posts save in about 5 seconds with either editor.

    It seems this may be related to how WP Optimize interacts with the Classic Editor on post publish (possibly preloading or cache regeneration logic?).

    Has anyone encountered this?
    Is there a way to delay or defer preloading/cache regeneration to avoid impacting post-publish actions?

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support statyanenko

    (@statyanenko)

    Hi @myscenatech0

    Please try disabling the “Automatically preload content after it is purged” option (Cache > Page Cache > Purge the Cache section) and see if the issue still occurs.
    If that helps, you can set up scheduled preloading instead of immediate preloading (Cache > Preload tab).

    Hi @statyanenko

    I had the same issue. Your suggestion seems to have fixed it. I don’t know exactly when this started, possibly with the update to WP 6.8.1

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘504 Timeout When Publishing Posts with WP Optimize Cache Enabled’ is closed to new replies.