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

1 line
1.1 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path d="M13.09,32c-0.33,0.001 -0.66,-0.108 -0.935,-0.326c-0.591,-0.469 -0.743,-1.314 -0.352,-1.959c0.097,-0.161 9.68,-16.138 4.735,-24.101c-1.033,-1.662 -2.191,-2.537 -3.443,-2.6c-2.43,-0.109 -5.089,2.61 -5.907,3.674c-0.285,0.37 -0.726,0.587 -1.193,0.587c-0.826,0 -1.505,-0.679 -1.505,-1.505c-0,-0.332 0.109,-0.655 0.312,-0.918c0.159,-0.207 3.923,-5.063 8.443,-4.845c2.297,0.115 4.265,1.467 5.85,4.018c3.704,5.963 1.097,14.852 -1.481,20.847c2.681,-1.858 5.991,-3.686 9.149,-4.177c0.832,-0.124 1.592,0.435 1.719,1.255c0.127,0.82 -0.435,1.592 -1.255,1.719c-5.892,0.916 -13.012,7.832 -13.083,7.902c-0.281,0.276 -0.66,0.429 -1.053,0.429l-0.001,-0Z" style="fill:#7cb1f4;fill-rule:nonzero;"/></svg>