[buddypress-trac] [BuddyPress Trac] #8683: BP .htaccess rule causes server CPU spikes

buddypress-trac noreply at wordpress.org
Mon Apr 18 15:33:32 UTC 2022

#8683: BP .htaccess rule causes server CPU spikes
 Reporter:  kuznacic      |       Owner:  dcavins
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Core          |     Version:  10.2.0
 Severity:  major         |  Resolution:
 Keywords:                |
Changes (by dcavins):

 * owner:  (none) => dcavins
 * status:  new => assigned


 Hi @kuznacic,

 This is not a BuddyPress issuse, as @imath suspected. Those htaccess files
 are created by BP Docs (which is not a plugin maintained by the BuddyPress

 Those htaccess files are created to protect files that are attached to
 private docs. If there were no htaccess files for private attachments,
 anyone who had the URL could access those files. The way the protection
 works is that WordPress is started to determine whether the user should
 have access to a file, and if they do, the file is streamed to them, using
 php. So it does require more computing power than serving static files.
 However, I have sites that contain thousands of private documents and
 attachments, and they do function as expected.

 It sounds to me like you might have an issue with your site that is
 causing general inefficiency, which of course is compounded by the number
 of image requests. If I were you, I would start troubleshooting by
 installing Query Monitor to see what a typical page load takes, looking
 for long queries or slow assets. Let me know what you find.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8683#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list