Thanks for reporting this! We’ve tested the logout process on our end, and it’s working correctly. On your live site, this issue might be happening due to one of the following:
- Caching or optimization plugins – Some page or CDN caching tools (like LiteSpeed, WP Rocket, or Cloudflare) can cache or block API requests such as
wp-json/masteriyo/v1/users/logout/?_locale=user.
- CDN or proxy interference – Services like Cloudflare or Sucuri may block or cache REST API requests, preventing the logout API call from executing properly.
- JavaScript not loading correctly – If scripts are minified, deferred, or blocked, the JS responsible for triggering the logout API call may not run.
Recommended steps:
- Temporarily disable all caching or optimization plugins and clear your CDN cache.
- Open your browser’s Developer Tools → Network tab, click the logout button, and check if the request to
wp-json/masteriyo/v1/users/logout/?_locale=user returns a proper response (status 200).
- Check the Console tab for any JavaScript errors that might prevent the logout action.
Please try these steps and let us know what you find, we’ll be glad to assist further!