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:
@@ -0,0 +1,3 @@
|
||||
<svg width="20" height="17" viewBox="0 0 20 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path opacity="0.75" d="M14 2.5C16.5312 2.5 18.625 4 18.9688 5.90625C19.0312 6.21875 18.7812 6.5 18.4375 6.5H16.75L16 5L15.25 6.5H11.0312C11.5 8.28125 12.3125 12.125 11.8438 15.6562C11.7812 16.1562 11.3438 16.5 10.8438 16.5H9.125C8.5 16.5 8 15.9062 8.15625 15.2812C8.625 13.5 9.3125 10.0312 8.96875 6.78125L4.40625 11.3438C4.15625 11.5938 3.78125 11.5625 3.59375 11.3125C2.5 9.6875 2.90625 7.15625 4.6875 5.375C4.8125 5.28125 4.90625 5.1875 5.03125 5.09375L4 3L3.25 4.5H1.5625C1.1875 4.5 0.9375 4.21875 1 3.90625C1.34375 2 3.4375 0.5 5.96875 0.5C8.28125 0.5 10.2188 1.78125 10.7812 3.46875C11.6562 2.875 12.7812 2.5 14 2.5Z" fill="#9B64E8"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 746 B |
Reference in New Issue
Block a user