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 xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
||||
<path fill="#7A30E2" d="M8.826 12.481c1.652.508 2.176 1.032 2.683 2.684.041.132.23.132.27 0 .508-1.653 1.031-2.176 2.683-2.684a.141.141 0 0 0 0-.27c-1.652-.507-2.175-1.03-2.683-2.683a.141.141 0 0 0-.27 0c-.507 1.653-1.03 2.176-2.683 2.684a.141.141 0 0 0 0 .27Zm-7.52-4.807c2.998-.922 3.948-1.871 4.869-4.87a.256.256 0 0 1 .49 0c.92 2.999 1.87 3.949 4.869 4.87.24.074.24.416 0 .49-2.999.921-3.948 1.87-4.87 4.869a.256.256 0 0 1-.49 0c-.92-2.998-1.87-3.948-4.868-4.87a.256.256 0 0 1 0-.489Zm7.52-4.411c1.652-.508 2.176-1.031 2.683-2.683a.141.141 0 0 1 .27 0c.508 1.652 1.031 2.175 2.683 2.683.133.04.133.23 0 .27-1.652.508-2.175 1.031-2.683 2.683a.141.141 0 0 1-.27 0c-.507-1.652-1.03-2.175-2.683-2.683a.141.141 0 0 1 0-.27Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 830 B |
Reference in New Issue
Block a user