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 xmlns="http://www.w3.org/2000/svg" height="16" width="16" class="svg-inline--fa fa-wpforms fa-w-14" data-icon="wpforms" data-prefix="fab" aria-hidden="true"><path d="M16 1.543v12.914c0 .868-.679 1.543-1.543 1.543H1.543A1.53 1.53 0 010 14.454V1.543C0 .682.671 0 1.543 0H14.46C15.318 0 16 .671 16 1.543zm-1.332 12.91V1.544a.212.212 0 00-.207-.208h-.332L10.189 4 8 2.217 5.814 4 1.875 1.332h-.332c-.114 0-.207.1-.207.207v12.915c0 .107.093.207.207.207H14.46a.207.207 0 00.207-.207zM5.364 5.5v1.32H2.74V5.5zm0 2.656v1.332H2.74V8.155zm.397-5.26l1.928-1.56H3.457zm7.5 2.604v1.32h-7V5.5zm0 2.656v1.332h-7V8.155zm-3.022-5.26l2.304-1.56H8.314zm3.022 7.924v1.332H9.71V10.82z" fill="#2b87da"/></svg>
|
||||
|
After Width: | Height: | Size: 692 B |
Reference in New Issue
Block a user