Title: WP Engine Cache Clear Error with plugin active
Last modified: November 20, 2025

---

# WP Engine Cache Clear Error with plugin active

 *  Resolved [dave carpenter](https://wordpress.org/support/users/davecarpenter/)
 * (@davecarpenter)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/)
 * This plugin breaks the ability to clear cache on WP Engine sites. The REST route`/
   wp-json/wpe/cache-plugin/v1/clear_all_caches` that is registered by a WP Engine
   MU Plugin returns a 502 error with the response `unable to send to backend` when
   this plugin is active.
 * I am seeing this error on multiples sites and I’ve tested on plugin versions 
   4.3.3 and 5.X

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

 *  Thread Starter [dave carpenter](https://wordpress.org/support/users/davecarpenter/)
 * (@davecarpenter)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18727102)
 * This only appears to be an issue on sites with basic authentication enabled
 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18730007)
 * Hi [@davecarpenter](https://wordpress.org/support/users/davecarpenter/) ,
   hope
   you’re fine, sorry for the issue you’re facing. Can you try exclude the /wp-json/
   path on exclude url ? May you can contact [support@weglot.com](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/support@weglot.com?output_format=md)
   and mention this thread. I’ll keep this thread up to date but if I need to send
   you a patch version or make some test it will be easierRegards
 *  Thread Starter [dave carpenter](https://wordpress.org/support/users/davecarpenter/)
 * (@davecarpenter)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18730951)
 * Hi Edson,
 * I set up this exclusion in the Weglot dashboard, but it does not seem to solve
   the problem.
 * [https://imgur.com/a/YHjTZYC](https://imgur.com/a/YHjTZYC)
 * Thanks,
   Dave
 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18731492)
 * Hi [@davecarpenter](https://wordpress.org/support/users/davecarpenter/) 
   Thanks
   for the try it’s help ;). I’ve open an issue on our side i keep you in touch.
   Do you think you can make a short video or screen of how you purge the cache 
   in wp engin to reproduce it on my own environement? Regards
 *  Thread Starter [dave carpenter](https://wordpress.org/support/users/davecarpenter/)
 * (@davecarpenter)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18732098)
 * I’m not sure you would be able to reproduce it without the WP Engine cache plugin
   itself.
 * An AJAX POST request is made to a custom REST endpoint: `/wp-json/wpe/cache-plugin/
   v1/clear_all_caches`. The server responds with a `502` code and the message `
   unable to send to backend`. I’m not able to find this response string in any 
   code on the site so I’m not sure where it’s coming from. I registered my own 
   REST API endpoint and sent a POST request from the same page using the browser
   console and that worked fine.
 * The only other clue is that this error only occurs on sites that have basic authentication
   enabled. I tried bypassing basic authentication with the `http_request_args` 
   hook but that did not work either.
 * The issue persists across multiple sites with Weglot installed.
 * I will also reach out to WP Engine support and see if they have any insight.
 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18733130)
 * Hi [@davecarpenter](https://wordpress.org/support/users/davecarpenter/) ,
   thanks
   for your message, it’s help. I try to reproduce it on my side an i’ve this endpoint:`
   index.php?rest_route=/wpe/cache-plugin/v1/clear_all_caches`to have it I do [https://www.loom.com/share/e795944a24034f5d83b14407b33336f6](https://www.loom.com/share/e795944a24034f5d83b14407b33336f6):
   can you confirm it the right steps ? I want to be sure i’ve the right context
   before install Weglot and debug itRegards
 * ![](https://wordpress.org/93e3dd2a-99ff-442a-80a5-65f861e38351)
 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [6 months ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18740349)
 * Hi [@davecarpenter](https://wordpress.org/support/users/davecarpenter/) ,
   do 
   you still facing your issue ?
 *  Thread Starter [dave carpenter](https://wordpress.org/support/users/davecarpenter/)
 * (@davecarpenter)
 * [6 months ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18741150)
 * Hey [@glx77](https://wordpress.org/support/users/glx77/), sorry I missed your
   last message.
 * Yes, I’m still running into the issue. The “Clear all caches” button from your
   Loom video is the one I’m having trouble with.
 * Though I’m not sure why yours is sending a request to `index.php?rest_route=/
   wpe/cache-plugin/v1/clear_all_caches`, while mine is sending a request to `/wp-
   json/wpe/cache-plugin/v1/clear_all_caches`
 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [6 months ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18741291)
 * Hi [@davecarpenter](https://wordpress.org/support/users/davecarpenter/),
    thanks
   for your reply, ok it’s not the same api call but if it’s the same button i’ll
   be able to reproduce your issue, i’ve juste have to add weglot and click to this
   button.I test it tomorrow and get you in touchRegards
    -  This reply was modified 6 months ago by [Edson Galina Fortes](https://wordpress.org/support/users/glx77/).
 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [6 months ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18743029)
 * Hi [@davecarpenter](https://wordpress.org/support/users/davecarpenter/) ,
   i’ve
   make test here : [https://www.loom.com/share/17b7a4a2284a4a6b9970219ae98c9a93](https://www.loom.com/share/17b7a4a2284a4a6b9970219ae98c9a93)
   and i’m not able to reproduce on my side. Do you thin it is possible to create
   a temp site on your site and reproduce the issue ? If you can, can you contact
   [support@weglot.com](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/support@weglot.com?output_format=md)
   and mention this thread to be able to share access to check together ?I keep 
   this thread up to date to share the solution with the community of courseRegards
 *  Thread Starter [dave carpenter](https://wordpress.org/support/users/davecarpenter/)
 * (@davecarpenter)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18754421)
 * Hey [@glx77](https://wordpress.org/support/users/glx77/),
 * I will spin up a test site early next week and contact you via that email address.
 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18754888)
 * Hi [@davecarpenter](https://wordpress.org/support/users/davecarpenter/) ,
   good
   idea thanks for it. Don’t hesitate to mention my name (Edson) or/and this thread
   and they the support team will reach the access to methanks for your help
 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18762314)
 * Hi [@davecarpenter](https://wordpress.org/support/users/davecarpenter/) , 
   hope
   you’re fine? Thanks for your help and your test env. I’ve find a fix, you can
   test it on your website and confirm it? the fix will be add on our next release
   planned for early january 2026 but if you want you can add this snippet to fix
   it:
 *     ```wp-block-code
       add_filter( 'weglot_active_translation', function( $active ) {if (isset( $_SERVER['REQUEST_URI'] )&& strpos( $_SERVER['REQUEST_URI'], '/wp-json/wpe/cache-plugin/v1/clear_all_caches' ) !== false) {return false;}return $active;}, 0 );
       ```
   
 * Regards
 *  Plugin Contributor [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * (@glx77)
 * [5 months ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18774634)
 * Hi [@davecarpenter](https://wordpress.org/support/users/davecarpenter/) ,
   hope
   you’re fine ? Do you still facing your issue ?

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-engine-cache-clear-error-with-plugin-active%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/weglot/assets/icon-256x256.gif?rev=3333666)
 * [Translate WordPress with Weglot - Multilingual AI Translation](https://wordpress.org/plugins/weglot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/weglot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/weglot/)
 * [Active Topics](https://wordpress.org/support/plugin/weglot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weglot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weglot/reviews/)

 * 14 replies
 * 2 participants
 * Last reply from: [Edson Galina Fortes](https://wordpress.org/support/users/glx77/)
 * Last activity: [5 months ago](https://wordpress.org/support/topic/wp-engine-cache-clear-error-with-plugin-active/#post-18774634)
 * Status: resolved