soderlind/super-admin-performance-boost
Composer 安装命令:
composer require soderlind/super-admin-performance-boost
包简介
Super Admin Performance Boost.
README 文档
README
On a WordPress Multisite, tries to avoid using switch_to_blog() and restore_current_blog() when possible.
Description
- Short-circuit the
get_blogs_of_user()function. We don't have to check if a site is own by the user, we want all sites. - Extend
WP_MS_Sites_List_Tableand use bespokeSuper_Admin_Performance_Boost::get_admin_url()andSuper_Admin_Performance_Boost::get_home_url()funtions. - Extend
WP_MS_Users_List_Table- For the Super Admin, hide their sites in the
Sitescolumn. - For rest of the users, use bespoke
Super_Admin_Performance_Boost::get_home_url()funtions.
- For the Super Admin, hide their sites in the
Side note
I wish I did't have to write this and the Super Admin All Sites Menu plugin, but it feels like WordPress Multisite is not ready for the Super Admin role.
I have a multisite with 100+ sites, and the following issues are a pain:
- The My Sites menu doesn't work for more than 23 sites, hence my Super Admin All Sites Menu plugin.
switch_to_blog()is used on every site for each page load, only to get the blog details, which is a waste of resources.- There's no point in listing all sites in the
Sitescolumn for the Super Admin, they own them all.
Installation
You know the drill.
Copyright and License
Super Admin Performance Boost is copyright 2023+ Per Soderlind
Super Admin Performance Boost is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
Super Admin Performance Boost is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Extension. If not, see http://www.gnu.org/licenses/.
soderlind/super-admin-performance-boost 适用场景与选型建议
soderlind/super-admin-performance-boost 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 963 次下载、GitHub Stars 达 9, 最近一次更新时间为 2023 年 03 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 soderlind/super-admin-performance-boost 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 soderlind/super-admin-performance-boost 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 963
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2023-03-11