• ewd910

    (@ewd910)


    Hi, I run a forum with a lot of users and forum posts. I have received complaints of 504 gateway timeouts when viewing user’s post/reply/ etc statistics on their forum profile page. I looked into it and it seems to be because this plugin is pulling every reply from the database when visiting that page and then iterating through them to see what the viewer has access to. I was not initially able to replicate this issue because I was logged in as the keymaster, and it was because in includes/replies.php pg_get_user_replies_created the permissions check is skipped for keymasters. This query: $post_ids=$wpdb->get_col("select ID from $wpdb->posts where post_type = '$reply'") ; should be rewritten to filter by post author so not every reply in the database is grabbed, and similar alterations should be made for the other user pages as well

  • You must be logged in to reply to this topic.