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 width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17.7968 13.7754L10.2968 0.744187C9.73434 -0.224563 8.26559 -0.255813 7.70309 0.744187L0.203087 13.7754C-0.359413 14.7442 0.359337 15.9942 1.51559 15.9942H16.4843C17.6406 15.9942 18.3593 14.7754 17.7968 13.7754ZM9.01559 11.0567C9.79684 11.0567 10.4531 11.7129 10.4531 12.4942C10.4531 13.3067 9.79684 13.9317 9.01559 13.9317C8.20309 13.9317 7.57809 13.3067 7.57809 12.4942C7.57809 11.7129 8.20309 11.0567 9.01559 11.0567ZM7.64059 5.90044C7.60934 5.68169 7.79684 5.49419 8.01559 5.49419H9.98434C10.2031 5.49419 10.3906 5.68169 10.3593 5.90044L10.1406 10.1504C10.1093 10.3692 9.95309 10.4942 9.76559 10.4942H8.23434C8.04684 10.4942 7.89059 10.3692 7.85934 10.1504L7.64059 5.90044Z" fill="#f0c33c"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 808 B |
Reference in New Issue
Block a user