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:
+1
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 48 49" xmlns="http://www.w3.org/2000/svg"><path d="M48.25 24c0-13.255-10.745-24-24-24s-24 10.745-24 24 10.745 24 24 24 24-10.745 24-24Z" fill="#FCF1EA"/><path xmlns="http://www.w3.org/2000/svg" d="M14.7812 27.8517C14.125 26.9142 13.75 25.7423 13.75 24.4767C13.75 21.1954 16.4219 18.4767 19.75 18.4767H27.25V21.4767C27.25 22.8829 28.9375 23.5392 29.8281 22.5079L33.2031 18.7579C33.7188 18.1954 33.7188 17.3048 33.2031 16.7423L29.8281 12.9923C28.9375 11.9611 27.25 12.6173 27.25 14.0236V16.9767H19.75C15.5781 16.9767 12.25 20.3517 12.25 24.4767C12.25 26.0704 12.7188 27.5704 13.5625 28.7892C13.7969 29.0704 14.2188 29.1173 14.4531 28.8361L14.6875 28.5548C14.875 28.3673 14.9219 28.0861 14.7812 27.8517ZM34.8906 20.2111C34.6562 19.9298 34.2344 19.8829 34 20.1642L33.7656 20.4454C33.5781 20.6329 33.5312 20.9142 33.6719 21.1486C34.3281 22.0861 34.75 23.2579 34.75 24.4767C34.75 27.8048 32.0312 30.4767 28.75 30.4767H21.25V27.5236C21.25 26.1173 19.5156 25.4611 18.625 26.4923L15.25 30.2423C14.7344 30.8048 14.7344 31.6954 15.25 32.2579L18.625 36.0079C19.5156 37.0392 21.25 36.3829 21.25 34.9767V31.9767H28.75C32.875 31.9767 36.25 28.6486 36.25 24.4767C36.25 22.9298 35.7344 21.4298 34.8906 20.2111Z" fill="#E27730"/></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user