Title: Huge Performance Issues
Last modified: October 17, 2022

---

# Huge Performance Issues

 *  Resolved [rafalosinski](https://wordpress.org/support/users/rafalosinski/)
 * (@rafalosinski)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/huge-performance-issues-3/)
 * Hi team!
    I’ve found huge performance issues on my WordPress Multisite.
 * Every day, few times a day, I see running method: `CME_Cap_Helper::force_distinct_taxonomy_caps`
   
   This process is time-consuming. It’s not a small page, with a few million rows,(
   posts, taxonomies, users, etc), and the server is in a cloud (dedicated, big 
   server), but this process cannot be handled even on our servers.
 * Screenshot: [https://imgur.com/CF7j96l](https://imgur.com/CF7j96l)
 * How to optimize this process?
 * Regards, Rafał.
    -  This topic was modified 3 years, 7 months ago by [rafalosinski](https://wordpress.org/support/users/rafalosinski/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/huge-performance-issues-3/#post-16107576)
 * [@rafalosinski](https://wordpress.org/support/users/rafalosinski/) If the Capabilities
   screen shows any post types or taxonomies configured for Type-Specific, Taxonomy-
   Specific or Detailed capabilities, their capabilities arrays are examined on 
   each plugin execution. If those capabilities are the same as the standard “post”,“
   page” or “category” type, a type-specific equivalent (“edit_things” or “manage_sections”)
   capability is defined instead.
 * The processing here is on post type and taxonomy definitions, not posts and terms.
   So there’s nothing in the logic and intentional execution that would be impacted
   by the number of rows in your posts, terms or user tables. But maybe there’s 
   an unintended side effect causing a table scan on your installation.
 * Whatever the cause, since this is causing you such a drastic issue, try disabling
   those post type and taxonomy settings on the Capabilities screen. Your other 
   plugin or theme code will then be responsible for defining capabilities for each
   custom post type and taxonomy. Note that the Capabilities UI will not display
   Reading, Editing, Deletion, Management or Assignment checkboxes for a custom 
   type or taxonomy if its defined capabilities are defaulted to “edit_posts”, “
   manage_categories” etc.
 * There is not currently a plugin setting to bypass the force_distinct_post_caps()
   and force_distinct_taxonomy_caps() functions entirely. Little code will execute
   there once you’ve disabled the type and taxonomy settings, but for an even leaner
   and safer execution you could write your own code snippet to hook into the ‘init’
   action and call remove_action for the “_cme_cap_helper” function at priority 
   49. This will cause the Type-Specific, Taxonomy-Specific and Detailed capabilities
   settings to be ignored (with the same implications I just described).
    -  This reply was modified 3 years, 7 months ago by [Kevin Behrens](https://wordpress.org/support/users/kevinb/).

Viewing 1 replies (of 1 total)

The topic ‘Huge Performance Issues’ is closed to new replies.

 * ![](https://ps.w.org/capability-manager-enhanced/assets/icon-256x256.png?rev=
   3408171)
 * [PublishPress Capabilities - User Role Editor, Access Permissions, User Capabilities, Admin Menus](https://wordpress.org/plugins/capability-manager-enhanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/capability-manager-enhanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/capability-manager-enhanced/)
 * [Active Topics](https://wordpress.org/support/plugin/capability-manager-enhanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/capability-manager-enhanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/capability-manager-enhanced/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/huge-performance-issues-3/#post-16107576)
 * Status: resolved