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 24.5c0-13.255-10.745-24-24-24S0 11.245 0 24.5s10.745 24 24 24 24-10.745 24-24Z" fill="#e6f0f7"/><path xmlns="http://www.w3.org/2000/svg" d="M14.5312 27.3516C13.875 26.4141 13.5 25.2422 13.5 23.9766C13.5 20.6953 16.1719 17.9766 19.5 17.9766H27V20.9766C27 22.3828 28.6875 23.0391 29.5781 22.0078L32.9531 18.2578C33.4688 17.6953 33.4688 16.8047 32.9531 16.2422L29.5781 12.4922C28.6875 11.4609 27 12.1172 27 13.5234V16.4766H19.5C15.3281 16.4766 12 19.8516 12 23.9766C12 25.5703 12.4688 27.0703 13.3125 28.2891C13.5469 28.5703 13.9688 28.6172 14.2031 28.3359L14.4375 28.0547C14.625 27.8672 14.6719 27.5859 14.5312 27.3516ZM34.6406 19.7109C34.4062 19.4297 33.9844 19.3828 33.75 19.6641L33.5156 19.9453C33.3281 20.1328 33.2812 20.4141 33.4219 20.6484C34.0781 21.5859 34.5 22.7578 34.5 23.9766C34.5 27.3047 31.7812 29.9766 28.5 29.9766H21V27.0234C21 25.6172 19.2656 24.9609 18.375 25.9922L15 29.7422C14.4844 30.3047 14.4844 31.1953 15 31.7578L18.375 35.5078C19.2656 36.5391 21 35.8828 21 34.4766V31.4766H28.5C32.625 31.4766 36 28.1484 36 23.9766C36 22.4297 35.4844 20.9297 34.6406 19.7109Z" fill="#056AAB"/></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user