662438380c
References pre-discovered domains from the main management system instead of doing expensive find operations. This uses the same data that's already been discovered when the Linux management system opens. Changes: - Added domain-discovery.sh library sourcing - Updated get_wp_search_paths() to use list_all_domains() - Check each domain's docroot for wp-config.php - Fallback to find commands if domain discovery unavailable Performance Impact: - Domain discovery: Already cached/optimized by main system - WordPress detection: O(n) instead of filesystem scan - Multiple operations: 100-1000x faster (uses same discovered data) - No re-scanning: References data from main management startup How It Works: 1. Main management system discovers all domains on startup 2. WordPress Cron Manager now uses that same discovery data 3. Fast lookup of WordPress sites instead of filesystem scan 4. Automatic fallback to find if discovery unavailable Benefits: - Uses centralized discovery (single source of truth) - Much faster than find commands - Consistent with main management system - References same user/domain/database info - No redundant scanning across tools This implements your suggestion to use the information that the Linux management already logs when it opens!