• Ich habe eine WordPressseite mit the Events calendar und WPML am laufen. Die Events und Posts fragen wir über die Rest-Api ab. Seit dem neusten WordPress Update braucht die Api Abfrage anstatt 30s mittlerweile fast 2 Minuten, was viel zu lang ist. Parameter ist: /wp-json/wp/v2/posts?_embed&per_page=100. Wenn ich die deutschen Posts abfrage geht es ziemlich schnell, jedoch die anderen Sprachen (auf denen nur 90 posts existieren) brauchen dafür über 2 Minuten. Entferne ich den parameter _embed, gibt es auch bei übersetzten Posts keine Probleme, jedoch ben?tige ich diesen parameter.. Es ist erst seit dem neusten Update.

Viewing 1 replies (of 1 total)
  • There are a few potential solutions that you could try:

    1. Update your plugins: Make sure that you have the latest versions of both the WPML plugin and the Events Calendar plugin installed.
    2. Disable plugins temporarily: Try temporarily disabling any plugins that are not essential to your site to see if one of them might be causing the slowdown.
    3. Optimize your database: If you have a large number of posts and events, your database may need to be optimized to improve performance.
    4. Check server resources: Make sure that your server has sufficient resources to handle the API query. If it’s a shared hosting environment, consider upgrading to a dedicated server.
    5. Debug the issue: Finally, you can try using the Debug Bar plugin or similar tools to debug the issue and determine exactly what is causing the slowdown.
    • This reply was modified 2 years, 1 month ago by janet4now.
Viewing 1 replies (of 1 total)
  • The topic ‘Langsame Rest Api nach Update’ is closed to new replies.