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
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="22.584" viewBox="0 0 32 22.584"><defs><style>.a-smtp{fill:#819eaf;fill-rule:evenodd;}</style></defs><path class="a-smtp" d="M31.158,34.542a2.716,2.716,0,0,1-1.99.842H2.756a2.78,2.78,0,0,1-1.99-.842A2.969,2.969,0,0,1,0,32.513V15.671a2.833,2.833,0,0,1,.8-2.029,2.716,2.716,0,0,1,1.99-.842H29.206a2.78,2.78,0,0,1,1.99.842,2.833,2.833,0,0,1,.8,2.029V32.513A2.868,2.868,0,0,1,31.158,34.542ZM27.789,15.594,16.038,25.049,4.249,15.594c-.689-.574-1.3-.651-1.837-.153a1.015,1.015,0,0,0-.306.842,1.243,1.243,0,0,0,.383.689l7.656,7.043L2.794,31.633a.706.706,0,0,0-.077.957h0a.6.6,0,0,0,.459.23.879.879,0,0,0,.536-.153l8.23-6.967L16,29.3l3.981-3.6,8.23,6.967a.879.879,0,0,0,.536.153.7.7,0,0,0,.536-.23c.23-.306.191-.612-.153-.957l-7.273-7.617,7.656-7.043a1.6,1.6,0,0,0,.421-.689.905.905,0,0,0-.344-.842c-.536-.5-1.11-.421-1.8.153Z" transform="translate(0 -12.8)"/></svg>

After

Width:  |  Height:  |  Size: 916 B