Files
root b6df4dbb92 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>
2026-04-29 15:32:23 +00:00

2 lines
1.1 KiB
XML
Executable File

<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 106 80"><g clip-path="url(#a)"><path fill="#1C3AA9" d="M93.143 39.952V5.735l-8.984 8.984C76.799 5.735 65.616 0 53.096 0 40 0 28.436 6.213 21.172 15.77l14.72 14.911c1.433-2.676 3.536-4.97 5.925-6.69 2.58-2.008 6.213-3.633 11.279-3.633.573 0 1.051.096 1.433.192a19.196 19.196 0 0 1 14.815 8.984L58.926 39.952c13.19-.095 28.1-.095 34.217 0Z"/><path fill="#4285F4" d="M52.809 0H18.59l8.985 8.984c-8.985 7.36-14.72 18.543-14.72 31.064 0 12.999 6.213 24.66 15.867 31.923l14.91-14.719c-2.676-1.434-4.97-3.536-6.69-5.926-2.008-2.58-3.632-6.212-3.632-11.278 0-.574.095-1.052.19-1.434A19.196 19.196 0 0 1 42.487 23.8l10.418 10.418c-.095-13.19-.19-28.1-.095-34.217Z"/><path fill="#ABABAB" d="M12.857 40.048v34.217l8.984-8.984C29.201 74.265 40.383 80 52.904 80c13 0 24.66-6.214 31.924-15.867l-14.72-14.815c-1.433 2.676-3.536 4.97-5.925 6.69-2.58 2.008-6.213 3.633-11.279 3.633a5.784 5.784 0 0 1-1.433-.192 19.196 19.196 0 0 1-14.815-8.984l10.418-10.418c-13.19.095-28.1.095-34.217 0Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M12.857 0h80.287v80H12.857z"/></clipPath></defs></svg>