Conversation
supportHad some issues with 10s loading times and traced it to your plugin. Claude suggested (and locally fixed) it for me with this suggestion: SCPO_Engine::refresh runs on every admin page load, causing multi-second TTFB On a site with ~3,000 posts across enabled post types (including attachment ), loading /wp-admin/plugins.php takes ~9.5 seconds and produces 14,000+ database queries . The same happens on any admin screen — Dashboard, Tools, Settings, etc. The cause is that SCPO_Engine::refresh() is hooked to admin_init without any screen check, so it runs on every single admin request regardless of whether that screen has anything to do with sorting. On each run it iterates all enabled sortable post types and executes the COUNT(*) / MAX(menu_order) / MIN(menu_order) dirty-check (and follow-up writes when it decides a refresh is needed). Backtrace confirming this on /wp-admin/plugins.php : do_action('admin_init') → SCPO_Engine->refresh → wpdb->get_results @ simple-custom-post-order.php:394 Limiting refresh() to only run on edit.php (via a small mu-plugin workaround) drops TTFB on unrelated screens from ~9,500 ms to ~200 ms with no functional impact on sorting.
No comments were stored for this source.