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 @@
<svg viewBox="0 0 49 48" xmlns="http://www.w3.org/2000/svg"><path d="M48 24C48 10.745 37.255 0 24 0S0 10.745 0 24s10.745 24 24 24 24-10.745 24-24Z" fill="#fcf1ea"/><path d="M14.531 27.352c-.656-.938-1.031-2.11-1.031-3.375 0-3.282 2.672-6 6-6H27v3c0 1.406 1.688 2.062 2.578 1.03l3.375-3.75a1.506 1.506 0 0 0 0-2.015l-3.375-3.75c-.89-1.03-2.578-.375-2.578 1.032v2.953h-7.5a7.492 7.492 0 0 0-7.5 7.5c0 1.593.469 3.093 1.313 4.312.234.281.656.328.89.047l.235-.281a.568.568 0 0 0 .093-.703Zm20.11-7.64c-.235-.282-.657-.33-.891-.048l-.234.281a.568.568 0 0 0-.094.704c.656.937 1.078 2.109 1.078 3.328 0 3.328-2.719 6-6 6H21v-2.953c0-1.407-1.734-2.063-2.625-1.032L15 29.742a1.507 1.507 0 0 0 0 2.016l3.375 3.75c.89 1.031 2.625.375 2.625-1.031v-3h7.5c4.125 0 7.5-3.328 7.5-7.5 0-1.547-.516-3.047-1.36-4.266Z" fill="#e27730"/></svg>

After

Width:  |  Height:  |  Size: 823 B