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,5 @@
<svg width="22" height="32" viewBox="0 0 22 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M19.6297 3.04376C20.5823 3.56889 21.1736 4.56855 21.1736 5.65389L21.1736 26.3461C21.1736 27.4315 20.5823 28.4311 19.6297 28.9562L14.7911 31.6234C12.7975 32.7224 10.3526 31.2846 10.3526 29.0133L10.3526 2.98673C10.3526 0.715369 12.7975 -0.722365 14.7911 0.376611L19.6297 3.04376Z" fill="#211F9A"/>
<path d="M7.86376 5.47965C7.97774 5.69054 8.03741 5.92636 8.03741 6.16592V25.8167C8.03741 26.0562 7.97774 26.292 7.86376 26.5029C7.14882 27.8258 5.13557 27.3193 5.13557 25.8167L5.13557 6.16591C5.13557 4.66324 7.14882 4.15683 7.86376 5.47965Z" fill="#211F9A"/>
<path d="M2.72819 9.39095C2.84217 9.60184 2.90183 9.83765 2.90183 10.0772L2.90183 21.9378C2.90183 22.1773 2.84216 22.4131 2.72819 22.624C2.01324 23.9469 -6.58777e-08 23.4404 0 21.9378L5.9649e-07 10.0772C6.62367e-07 8.57454 2.01324 8.06812 2.72819 9.39095Z" fill="#211F9A"/>
</svg>

After

Width:  |  Height:  |  Size: 942 B