• Hello there,

    i am developing a native iOS application and trying to feed content through this JSON API plugin provided here.

    However the response time is incredible slow. querying about 10 posts will take about 10-12 seconds.

    I checked network latency but no problems here.

    Does anyone can lead me into the right direction how to optimize speed here. Maybe caching? If so, what would be needed?

    thanks in advance

    https://wordpress.org/plugins/json-api/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are all the plugins updated on the website?

    Thread Starter lddd2

    (@lddd2)

    Sure

    you need unset other field.

    for sample :
    i show title and thumbnail and id in my main app.
    so:
    public function get_recent_posts() {
    global $json_api;
    $posts = $json_api->introspector->get_posts();
    foreach ($posts as $post) {
    unset($post->status);
    unset($post->content);
    unset($post->comments);
    unset($post->attachments);
    unset($post->thumbnail_images);
    }
    return $this->posts_result($posts);
    }

    and get recent posts.very very fasting after this method

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Very slow response time on mobile app’ is closed to new replies.