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:
@@ -0,0 +1,3 @@
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M7 0C8.2748 0 9.44715 0.318699 10.5171 0.956098C11.587 1.57073 12.4293 2.41301 13.0439 3.48293C13.6813 4.55285 14 5.7252 14 7C14 8.2748 13.6813 9.44715 13.0439 10.5171C12.4293 11.587 11.587 12.4406 10.5171 13.078C9.44715 13.6927 8.2748 14 7 14C5.7252 14 4.55285 13.6927 3.48293 13.078C2.41301 12.4406 1.55935 11.587 0.921951 10.5171C0.307317 9.44715 0 8.2748 0 7C0 5.7252 0.307317 4.55285 0.921951 3.48293C1.55935 2.41301 2.41301 1.57073 3.48293 0.956098C4.55285 0.318699 5.7252 0 7 0ZM7.8878 3.51707C7.8878 3.26667 7.79675 3.06179 7.61463 2.90244C7.45528 2.72033 7.25041 2.62927 7 2.62927C6.74959 2.62927 6.53333 2.72033 6.35122 2.90244C6.19187 3.06179 6.1122 3.26667 6.1122 3.51707C6.1122 3.74472 6.19187 3.94959 6.35122 4.13171C6.53333 4.29106 6.74959 4.37073 7 4.37073C7.25041 4.37073 7.45528 4.29106 7.61463 4.13171C7.79675 3.94959 7.8878 3.74472 7.8878 3.51707ZM7.8878 11.3707V6.1122H6.1122V11.3707H7.8878Z" fill="#646970"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
Reference in New Issue
Block a user