Integrate MLS listings with property map and add smart sync
Property Map: - Replace ACF-based property display with MLS database queries - Use real lat/lng coordinates from MLS (100% coverage) - Create property-card-mls.php template for MLS property cards - Update AJAX handler to filter MLS properties MLS Plugin Enhancements: - Add 'wp mls run' smart sync command (auto-detects full/incremental/resume) - Add database index migrations for lat/lng and composite search indexes - Add comprehensive README.md documentation Documentation: - Update site README.md with sysadmin quick reference - Add FEATURES_PENDING_12_15.md tracking client feature requests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,13 @@ wp mls test auth
|
||||
wp mls status
|
||||
wp mls status rate-limits
|
||||
|
||||
# Run property sync
|
||||
# SMART SYNC (recommended for automation)
|
||||
wp mls run # Auto-detect: full, incremental, or resume
|
||||
wp mls run --quiet # Status messages only
|
||||
wp mls run --silent # For cron (exit code only)
|
||||
wp mls run --verbose # Full details
|
||||
|
||||
# Manual sync commands (for more control)
|
||||
wp mls sync full [--dry-run] [--limit=N] [--verbose] # Initial: Active/Pending only
|
||||
wp mls sync incremental [--dry-run] [--verbose] # Replication: all changes
|
||||
wp mls sync resume --id=<sync_id>
|
||||
@@ -171,7 +177,20 @@ The sync engine saves progress after each page:
|
||||
### Recommended Cron Setup
|
||||
|
||||
```bash
|
||||
# Replication sync every 15 minutes (MLS Grid recommended)
|
||||
# Smart sync every 15 minutes (recommended - handles everything automatically)
|
||||
*/15 * * * * cd /var/www/html && wp mls run --silent --allow-root >> /var/log/mls-sync.log 2>&1
|
||||
```
|
||||
|
||||
The `wp mls run` command automatically:
|
||||
- Runs full sync if no data exists
|
||||
- Runs incremental sync if data exists
|
||||
- Resumes failed/interrupted syncs
|
||||
- Aborts safely if another sync is running
|
||||
|
||||
For manual control, use individual commands:
|
||||
|
||||
```bash
|
||||
# Replication sync every 15 minutes
|
||||
*/15 * * * * cd /var/www/html && wp mls sync incremental --allow-root >> /var/log/mls-sync.log 2>&1
|
||||
|
||||
# Full re-sync weekly (Sunday 3am) - rebuilds from scratch
|
||||
|
||||
Reference in New Issue
Block a user