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,19 @@
<svg width="64" height="70" viewBox="0 0 64 70" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1767_52816)">
<path d="M9.22525 69.1892H61.6937C62.9675 69.1892 64 68.1566 64 66.8829V12.1081L52.7568 0H9.22525C7.95151 0 6.91895 1.03257 6.91895 2.3063V66.8829C6.91895 68.1566 7.95151 69.1892 9.22525 69.1892Z" fill="#E6EAED"/>
<path d="M52.7567 0L64 12.1081H54.7863C53.6654 12.1081 52.7567 11.1994 52.7567 10.0786V0Z" fill="#AAB5BC"/>
<rect y="39.5947" width="41.5135" height="20.7568" rx="3.45946" fill="#E65054"/>
<path d="M10.968 51.9978H9.65209V55.1648H6.91895V44.7817H10.968C13.6867 44.7817 15.3208 45.9965 15.3208 48.3247C15.3208 50.6674 13.6867 51.9978 10.968 51.9978ZM10.9536 47.0811H9.65209V49.6985H10.9536C12.0382 49.6985 12.6021 49.149 12.6021 48.3536C12.6021 47.5438 12.0382 47.0811 10.9536 47.0811Z" fill="white"/>
<path d="M20.7547 55.1648H16.7056V44.7817H20.7547C24.0374 44.7817 26.1053 46.8931 26.1053 49.9154C26.1053 52.9378 23.9651 55.1648 20.7547 55.1648ZM19.4387 47.1389V52.8076H20.5956C22.4033 52.8076 23.2998 51.8677 23.2998 49.9154C23.2998 48.0789 22.3743 47.1389 20.5956 47.1389H19.4387Z" fill="white"/>
<path d="M30.2563 55.1648H27.5232V44.7817H34.5946V47.1534H30.2563V49.0767H33.886V51.4483H30.2563V55.1648Z" fill="white"/>
<rect x="15.5676" y="8.64844" width="27.6757" height="3.45946" rx="1.72973" fill="#AAB5BC"/>
<rect x="15.5676" y="14.9907" width="38.0541" height="3.45946" rx="1.72973" fill="#AAB5BC"/>
<rect x="15.5676" y="21.333" width="38.0541" height="3.45946" rx="1.72973" fill="#AAB5BC"/>
<rect x="15.5676" y="27.6758" width="38.0541" height="3.45946" rx="1.72973" fill="#AAB5BC"/>
</g>
<defs>
<clipPath id="clip0_1767_52816">
<rect width="64" height="69.1892" rx="3.19581" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB