Snapshot: MLS sync fixes, image refresh, plugin/theme updates

MLS plugin fixes from this session:
- Fix silent insert failures: location column NOT NULL was rejecting wpdb->insert calls,
  causing ~18k new properties since Dec 2025 to be lost. Inserts now build raw SQL
  with ST_PointFromText so the spatial column is populated atomically.
- Auto-refresh expired media URLs in MLS_Media_Handler::fetch_and_cache(), guarded by
  a property-level GET_LOCK so concurrent fetches share one API refresh.
- Normalize WP_Error to null in mls_get_property_image() so callers can rely on the
  documented string|null contract.
- Support comma-separated property_type filters in MLS_Query and MLS_Cluster so the
  homepage "View All Commercial" link (?property_type=Commercial+Sale,Land,Farm)
  actually filters correctly.
- Incremental sync now looks back 10 minutes past the latest modification timestamp
  as a safety margin against missed records.
- Smart sync exits silently (info-level, not warning) when a full sync is in progress.

Operational:
- New cron: weekly full sync Sundays at 3 AM (/usr/local/bin/mls-full-sync).
- New cron: hourly 2GB cap on mls-thumbnails/ and cache/transformed-images/
  (/usr/local/bin/mls-image-cache-cap).
- Logrotate config for wp-content/debug.log (2-day retention, daily rotation,
  delaycompress).

Repo policy:
- CLAUDE.md updated with explicit "commit everything except build artifacts" policy.
- .gitignore: untrack runtime image caches and debug.log rotations.

Other modifications in this snapshot are pre-existing in-flight theme/plugin/db_content_updates work.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
root
2026-04-29 15:32:23 +00:00
parent 57b752f54e
commit b6df4dbb92
5385 changed files with 838580 additions and 2416 deletions
@@ -0,0 +1,3 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15.2731 7.22028L9.96584 4.87138C8.99689 4.44261 7.41104 3.74086 6.44209 3.31189L1.13478 0.962989C0.165623 0.534227 -0.267532 0.927642 0.171814 1.83729C0.171814 1.83729 2.37274 6.40669 2.8031 6.8742C2.90175 6.98144 3.58494 7.07689 3.98374 7.12622L9.29125 7.78225C9.77573 7.84216 10.018 7.92104 10.018 7.99992C10.018 8.0788 9.77573 8.15769 9.29125 8.2176L3.98374 8.87362C3.58494 8.92295 2.90195 9.01841 2.8031 9.12565C2.37254 9.59295 0.171814 14.1626 0.171814 14.1626C-0.267732 15.0722 0.165623 15.4658 1.13478 15.0369L6.44229 12.6879C7.41124 12.2592 8.99689 11.5574 9.96604 11.1285L15.2733 8.77956C15.7578 8.56508 16.0001 8.2825 16.0001 7.99992C16.0001 7.71734 15.7578 7.43456 15.2733 7.22028H15.2731Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 830 B