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:
+3
@@ -0,0 +1,3 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path opacity="0.75" d="M8 0.083374C12.25 0.083374 15.75 3.58337 15.75 7.83337C15.75 12.1146 12.25 15.5834 8 15.5834C3.71875 15.5834 0.25 12.1146 0.25 7.83337C0.25 3.58337 3.71875 0.083374 8 0.083374ZM10.5625 11.2709C10.8125 11.0209 11 10.6459 11 10.2396C11 9.98962 10.875 9.73962 10.7188 9.58337L10.2812 9.14587C10.0938 8.95837 9.84375 8.83337 9.5625 8.83337H7.5C7.1875 8.70837 6.8125 7.83337 6.5 7.83337C6.15625 7.83337 5.84375 7.77087 5.53125 7.61462L5.1875 7.45837C5.0625 7.39587 5 7.27087 5 7.11462C5 6.95837 5.09375 6.80212 5.25 6.77087L6.21875 6.42712C6.25 6.42712 6.3125 6.42712 6.375 6.42712C6.5 6.42712 6.625 6.45837 6.6875 6.52087L7 6.80212C7.03125 6.83337 7.09375 6.83337 7.15625 6.83337H7.34375C7.53125 6.83337 7.625 6.64587 7.5625 6.48962L7.0625 5.52087C7.0625 5.48962 7.03125 5.42712 7.03125 5.39587C7.03125 5.33337 7.0625 5.27087 7.125 5.20837L7.4375 4.92712C7.46875 4.86462 7.53125 4.83337 7.59375 4.83337H7.875C7.9375 4.83337 8 4.83337 8.0625 4.77087L8.3125 4.52087C8.40625 4.42712 8.40625 4.27087 8.3125 4.17712L8.15625 4.02087C8.0625 3.92712 8.0625 3.77087 8.15625 3.67712L8.5 3.33337L8.625 3.20837C8.8125 3.02087 8.8125 2.67712 8.625 2.48962L7.75 1.61462C7.5 1.61462 7.21875 1.64587 7 1.67712V2.05212C7 2.42712 6.59375 2.64587 6.25 2.48962L5.5 2.11462C4.0625 2.73962 2.9375 3.86462 2.28125 5.30212C2.59375 5.77087 3.0625 6.45837 3.375 6.89587C3.53125 7.14587 3.71875 7.33337 3.9375 7.55212H3.96875C4.25 7.83337 4.59375 8.05212 4.9375 8.23962C5.375 8.45837 6.03125 8.80212 6.46875 9.05212C6.78125 9.23962 7 9.58337 7 9.92712V10.9271C7 11.2084 7.09375 11.4584 7.28125 11.6459C7.75 12.1146 8.03125 12.8334 8 13.2396V14.0834C8.4375 14.0834 8.875 14.0521 9.3125 13.9584L9.875 12.4896C9.9375 12.3021 9.96875 12.1459 10 11.9584C10.0312 11.8334 10.0938 11.7084 10.1875 11.6146C10.3125 11.5209 10.4375 11.3959 10.5625 11.2709ZM13.2812 8.42712L14.1875 8.64587C14.2188 8.39587 14.25 8.11462 14.25 7.83337C14.25 6.83337 14 5.89587 13.5625 5.05212L13.1562 5.27087C13.0312 5.33337 12.9375 5.39587 12.875 5.52087L12.25 6.42712C12.1875 6.55212 12.125 6.70837 12.125 6.86462C12.125 6.98962 12.1875 7.14587 12.25 7.27087L12.8125 8.11462C12.9375 8.27087 13.0938 8.36462 13.2812 8.42712Z" fill="#9B64E8"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.3 KiB |
Reference in New Issue
Block a user