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" width="50" height="50" viewBox="0 0 100 100"><circle cx="50" cy="50" r="50" fill="#a7aaad"/><path data-name="3" d="M49.83 47.5a7.656 7.656 0 002.42-.57 4.673 4.673 0 001.85-1.38 3.677 3.677 0 00.73-2.4 4.16 4.16 0 00-1.5-3.45 5.367 5.367 0 00-3.45-1.2 4.836 4.836 0 00-4.08 1.78 6.907 6.907 0 00-1.32 4.47h-6.75a15 15 0 01.97-4.92A11.337 11.337 0 0141.15 36a10.877 10.877 0 013.78-2.47 13.034 13.034 0 014.9-.88 14.551 14.551 0 014.2.63 11.78 11.78 0 013.77 1.87 10.2 10.2 0 012.73 3.05 8.1 8.1 0 011.05 4.15 8.255 8.255 0 01-1.23 4.5 6.1 6.1 0 01-3.67 2.65v.1a7.679 7.679 0 014.55 2.8 8.224 8.224 0 011.65 5.15 10.739 10.739 0 01-1.08 4.9 10.481 10.481 0 01-2.87 3.6 12.6 12.6 0 01-4.15 2.2 16.925 16.925 0 01-10.28-.1 10.8 10.8 0 01-6.75-6.45 14.178 14.178 0 01-.87-5.4h6.75a9.83 9.83 0 00.45 2.68 6.671 6.671 0 001.15 2.2 5.437 5.437 0 001.87 1.47 6.019 6.019 0 002.68.55 5.869 5.869 0 004.05-1.47 5.145 5.145 0 001.65-4.03 5.067 5.067 0 00-.78-3.05 4.338 4.338 0 00-1.97-1.52 8.208 8.208 0 00-2.63-.55c-.95-.05-1.85-.08-2.72-.08v-5a14.3 14.3 0 002.45 0z" fill="#fff" fill-rule="evenodd"/></svg>