• Query Monitor claims you have a bug in BP_Docs_Attachments->check_is_protected():

    cURL error 28: Connection timed out after 5000 milliseconds

    This bug adds 5 seconds to the load time of the WordPress admin panel

    It seems your function tries to access /uploads/bp-attachments/0/test.html. The file exists and Apache has write access.

    When I disable your function, admin panel page speed is normal.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Cavins

    (@dcavins)

    Hi Michael-

    If the call using wp_remote_get() is timing out, then it’s likely that your site is having a problem with its rewrites/redirects. Essentially, the test is making sure that a request to the protected file /wp-content/uploads/bp-attachments/0/test.html is redirected rather than served. Try visiting that URL in a browser to see how long it takes.

    Best,

    -David

    Plugin Author Boone Gorges

    (@boonebgorges)

    To add to what David says above: We’re looking into ways to improve this permission check in future versions, so that it runs far less frequently.

    Thread Starter Michael

    (@michael8888)

    David, you are right, the page redirects to the homepage it seems.

    I just tried it again with the WordPress default theme, no plugins enabled except BuddyPress and BudyPress Docs (and Query Monitor to measure the speed). .htaccess only contained the default WordPress rewrites. We have no rewrites in the Apache config.

    I suggest you try it yourself with Query Monitor. If I disable your function check_is_protected(), Admin Panel loads with normal speed.

    Do we really need this function? I disabled it because I can’t get work done if I always have to wait ages after every click.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin bug slows down admin panel’ is closed to new replies.